Open GoogleCodeExporter opened 8 years ago
1> Alt is using a bit in this table that interferes with the buttons
It must be a bug, because the values are not supposed to intersect. See the
docs at
top of keyboard.h: We can use values up to 0x07FF (2047). SDLK_LAST is 322 on
Windows and Linux, even if you add 4 + 18, there's still much room left. Maybe
SDLK_LAST has a different value on the gp2x ? But then, can a USB keyboard
really
work on it ?
2> There is no point in calling these keys Ctrl, Shift and Alt. They should
appear as
R, L and stick.
The point is that you said people can plug a USB keyboard to those consoles, so
I
shouldn't eliminate keyboard support.
If you prefer to show button names instead of shift, control etc, then on GP2X
you
can choose to display the label of the button whose number is in
"Joybutton_shift"
variable, etc.
3> we should allow "any" key combo to be mapped
I would really recommend against it.
The idea that some buttons are RESERVED as modifiers makes things much more
sane, and
we can already handle 4-key combinations. Such system can be very powerful: I
played
the Genesis version of Syndicate, and it had a very unique control system where
A and
the joystick directions had a different behavior depending on the states of B
and C
(which were only modifiers). It allowed everything, with no cursor-driven menu
anywhere: from moving and shooting to altering the 3 stats and managing the
inventory
(pick up, browse, drop, wield weapon or conceil it), and selecting any
combination of
the 4 agents you can control at the same time.
In short, before spending more time on it, I'd recommend to think exactly what
config
you would set if the program allowed it.
Original comment by yrizoud
on 9 Jun 2009 at 10:21
1>
SDLK_Last can be any value and it will not affect an usb keyboard, even if not
all
the keycodes are used.
What I see is Shift + [UP], but Alt + "mac command symbol" + a weird number
2>
Right, we need to differenciate more between keyboard and stick. What happens
now is
that some buttons are intercepted and translated as keyboard events, and the
function that writes the name of keys to the screen doesn't differenciate them
3>
Ok, we may reserve some buttons as modifiers, but at least make them settable
in the
helpscreen.
And then, what happens if someone decide to change the modifier ? Do we have to
go
trough all the shortcuts and swap occurences of the new modifier to put the old
one
instead ?
Last note :
The stick is intercepted as mouse event as hardcoded setup, it could go trough
the
shortcuts system. We should actually provide joystick shortcuts for some things
as
primary shortcut on the gp2x (keyboard would then be the secondary one). So
here
again we need a slightly different config for the gp2x...
Original comment by pulkoma...@gmail.com
on 10 Jun 2009 at 9:34
Original comment by pulkoma...@gmail.com
on 2 Sep 2009 at 9:43
Original comment by pulkoma...@gmail.com
on 15 Sep 2009 at 7:13
Original comment by pulkoma...@gmail.com
on 15 Jan 2010 at 7:34
Original issue reported on code.google.com by
pulkoma...@gmail.com
on 9 Jun 2009 at 8:09