Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6619881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:01:44+00:00 2026-05-25T21:01:44+00:00

I have my small project in which I use SDL, and I was playing

  • 0

I have my small project in which I use SDL, and I was playing around with the different available drivers. I came across the aalib driver, and I realized the SDL_KEYUP event was never called.

This, however, happens only in certain conditions. The event is sent when using the X driver, however not when using in console mode (ie. using Ctrl + Alt + F1).

Here is a minimal code to test this:

#include <SDL/SDL.h>
#include <stdio.h>

int main()
{
    SDL_Init(0);
    SDL_SetVideoMode(64, 64, 32, SDL_SWSURFACE);

    while(1)
    {
        SDL_Event event;

        while(SDL_PollEvent(&event))
        {
            if(event.type == SDL_KEYDOWN)
                printf("Key down: %d\n", event.key.keysym.sym);
            else if(event.type == SDL_KEYUP)
                printf("Key up: %d\n", event.key.keysym.sym);
            else if(event.type == SDL_QUIT)
                SDL_Quit();
        }
    }
}

Then, to run it with aalib:

env SDL_VIDEODRIVER=aalib ./a.out

My question is: Is this to be considered a bug? Or is it something aalib cannot know because of the console won’t give this information?

If aalib cannot have this information, I find it a shame SDL cannot provide the same features for all it’s drivers.

OS: FreeBSD 8.2

SDL version: 1.2.14

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:01:45+00:00Added an answer on May 25, 2026 at 9:01 pm

    TTYs (such as the console) don’t receive raw keyboard events at all; they only receive a single “character input” event. You may find that modifier keys (e.g, shift) don’t fire SDL events at all, because there’s no corresponding character sent.

    This is an inherent limitation of the TTY layer. SDL isn’t really to blame.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small project which will use iPad as an information kiosk for
I have done a small project, which consists of 5 excel sheet in, code
I'm developing a small POS for a university project. I have a form which
I have a small project for which I need to offer a CMS UI/storage
Consider this scenario. I have a small enterprise project dev environment. We use archiva
I have a small project I am working on which is WPF c# that
I have a small Qt4 project which I want to build with cmake. It
We have a small project with some heavy-weight dependencies (e.g. Spring) of which we
I have been working with a small project recently which involves Struts 2 and
I'm working on a project which will have millions of small mp3 files that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.