[SDL] Keys LEFT UP and SPACE
Alan Wolfe
Atrix2 at cox.net
Thu Nov 1 22:20:22 PDT 2007
Here's a good article on this.
http://www.sjbaker.org/steve/omniv/keyboards_are_evil.html
Whenever this issue comes up I just google for "keyboards are evil".
Good info (:
-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of necronology at cox.net
Sent: Wednesday, October 31, 2007 2:40 AM
To: sdl at libsdl.org; A list for developers using the SDL library. (includes
SDL-announce)
Cc: Micah Brening
Subject: Re: [SDL] Keys LEFT UP and SPACE
Team-
Different keyboards can handle more or fewer key presses at the same time.
Get a new keyboard and odds are your keyboard issue will be gone. Some new
keyboards do exacyly what you are talking about but it's rare. Make it so it
displays all of the keys on the screen like "up button is pressed" and such
and this will show you. Switch keyboards a few times and note the
difference. The overlap/overflow happens just like you say at one point or
another according to the order of the scan codes.
---- Micah Brening <micah.brening at gmail.com> wrote:
> Hello all,
>
> I've been running into an annoying "bug". In most of my
projects/experiments
> I commonly use the arrow keys for movement, and the space bar for action.
>
> They all work seperately, but with the combination of Up, Left, and Space;
it
> will drop one or the other depending on which is pressed last, usually
space.
>
> I've tried two different ways of accessing the keys (pumpkeys+getkeystate
and
> pollevents+event.key.keysym.sym)
>
> But other combinations (eg. (Up,Right,Space),(Up,Left,s)) do work. This
is
> consistant on Windows 2000, XPpro, Vista Ultimate. I believe it did the
same
> on Linux (debian, gentoo, ubuntu) but I'd have to double check on that.
>
> Is there a reason for this?
>
> I have no problem using a different button other than space since other
keys
> will work with the UP+LEFT combination. But it is an annoyance and I just
> simply want to know why it is.
>
> Anyone else have this problem?
>
> Anyone have a solution for it?
>
> Is it system based? Or is it SDL based?
>
> Thanks!
> Micah
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
More information about the SDL
mailing list