Tasklist
FS#12029 - SDL_PAD keymaps for plugins on SDLAPP build without TOUCHSCREEN
| Task Type |
Patches |
| Category |
Plugins |
| Status |
Unconfirmed |
| Assigned To |
No-one |
| Player Type |
Generic RaaA |
| Severity |
Low |
| Priority |
Normal |
| Reported Version |
Daily build (which?) |
| Due in Version |
Undecided |
| Due Date |
Undecided |
| Percent Complete |
|
| Private |
No
|
|
Details
If you build RaaA for SDL with HAVE_TOUCHSCREEN disabled there are no key bindings for the SDL_PAD in any of the plugins. This patch attempts to define generic key mappings for the 3x3 number pad on a typical PC keyboard. It needs work however. For instance, after a bit of testing I decided I'd prefer not to wait for a key repeat on the HOME button to quit most of the plugins. That said, it may prove a useful starting point developers building for RaaA platforms without a mouse or touchscreen. (Like me with the zipit.)
For the Zipit I plan to fix up the generic SDL keys first, testing on a real PC, and then try and figure out a way to use most of them as is. I'm not sure yet if it makes sense to define a ZIPIT_PAD for the few plugins where alternative keys make sense, or use some other #ifdef.
plugins_sdlpad.patch
(41.4 KiB)
apps/plugins/mp3_encoder.c | 6 ++++++
apps/plugins/stats.c | 3 +++
apps/plugins/superdom.c | 8 ++++++++
apps/plugins/sliding_puzzle.c | 9 +++++++++
apps/plugins/flipit.c | 12 ++++++++++++
apps/plugins/chessbox/chessbox_pgn.h | 14 ++++++++++++++
apps/plugins/oscilloscope.c | 11 +++++++++++
apps/plugins/starfield.c | 8 ++++++++
apps/plugins/snake2.c | 9 +++++++++
apps/plugins/clix.c | 10 ++++++++++
apps/plugins/midi/midiplay.c | 8 ++++++++
apps/plugins/snake.c | 8 ++++++++
apps/plugins/bounce.c | 8 ++++++++
apps/plugins/cube.c | 10 ++++++++++
apps/plugins/minesweeper.c | 20 ++++++++++++++++++++
apps/plugins/lib/pluginlib_actions.c | 15 +++++++++++++++
apps/plugins/snow.c | 3 +++
apps/plugins/spacerocks.c | 10 ++++++++++
apps/plugins/reversi/reversi-gui.h | 9 +++++++++
apps/plugins/logo.c | 7 +++++++
apps/plugins/brickmania.c | 8 ++++++++
apps/plugins/blackjack.c | 15 +++++++++++++++
apps/plugins/stopwatch.c | 8 ++++++++
apps/plugins/fractals/fractal.h | 12 ++++++++++++
apps/plugins/jewels.c | 10 ++++++++++
apps/plugins/calculator.c | 10 ++++++++++
apps/plugins/rockpaint.c | 11 +++++++++++
apps/plugins/pacbox/pacbox.h | 11 +++++++++++
apps/plugins/fft/fft.c | 8 ++++++++
apps/plugins/xobox.c | 9 +++++++++
apps/plugins/pong.c | 7 +++++++
apps/plugins/text_viewer/tv_button.h | 11 +++++++++++
apps/plugins/pegbox.c | 18 ++++++++++++++++++
apps/plugins/sudoku/sudoku.h | 10 ++++++++++
apps/plugins/zxbox/zxbox_keyb.c | 9 +++++++++
apps/plugins/zxbox/keymaps.h | 9 +++++++++
apps/plugins/rockblox1d.c | 4 ++++
apps/plugins/fireworks.c | 4 ++++
apps/plugins/rockblox.c | 10 ++++++++++
apps/plugins/mpegplayer/mpegplayer.c | 9 +++++++++
apps/plugins/mpegplayer/mpeg_settings.c | 10 ++++++++++
apps/plugins/solitaire.c | 20 +++++++++++++++++++-
apps/plugins/goban/goban.h | 10 ++++++++++
apps/plugins/calendar.c | 10 ++++++++++
apps/plugins/star.c | 18 ++++++++++++++++++
apps/plugins/doom/i_video.c | 11 +++++++++++
apps/plugins/imageviewer/imageviewer_button.h | 12 ++++++++++++
apps/plugins/vu_meter.c | 11 +++++++++++
apps/plugins/rockboy/rockboy.c | 11 +++++++++++
apps/plugins/sokoban.c | 15 +++++++++++++++
apps/plugins/chopper.c | 5 +++++
apps/plugins/matrix.c | 6 ++++++
apps/plugins/chip8.c | 9 +++++++++
apps/plugins/test_codec.c | 2 ++
apps/plugins/chessclock.c | 10 ++++++++++
apps/plugins/mosaique.c | 5 +++++
apps/plugins/wormlet.c | 10 ++++++++++
apps/plugins/invadrox.c | 7 +++++++
58 files changed, 562 insertions(+), 1 deletion(-)
|
Loading...