Tasklist
FS#8708 - Cowon D2: Button definitions for plugins and WPS
| Task Type |
Patches |
| Category |
Plugins |
| Status |
Closed |
| Assigned To |
No-one |
| Player Type |
Another |
| Severity |
Low |
| Priority |
Normal |
| Reported Version |
Daily build (which?) |
| Due in Version |
Undecided |
| Due Date |
Undecided |
| Percent Complete |
|
| Private |
No
|
|
Details
Cowon D2: Key/Button definitions/mappings for plugins, WPS and setings menu. Alot of '#define' stuff
d2-button-mapings.patch
(38.5 KiB)
apps/keymaps/keymap-cowond2.c | 22 ++++++++++++++++++++--
apps/plugins/blackjack.c | 15 +++++++++++++++
apps/plugins/bounce.c | 6 ++++++
apps/plugins/brickmania.c | 9 +++++++++
apps/plugins/calculator.c | 10 ++++++++++
apps/plugins/chessbox/chessbox.c | 15 +++++++++++++++
apps/plugins/chessbox/chessbox_pgn.c | 16 ++++++++++++++++
apps/plugins/chessclock.c | 10 ++++++++++
apps/plugins/chip8.c | 8 ++++++++
apps/plugins/chopper.c | 6 ++++++
apps/plugins/cube.c | 13 +++++++++++++
apps/plugins/dict.c | 2 ++
apps/plugins/disktidy.c | 3 +++
apps/plugins/doom/i_video.c | 10 ++++++++++
apps/plugins/fire.c | 7 +++++++
apps/plugins/fireworks.c | 3 +++
apps/plugins/flipit.c | 11 +++++++++++
apps/plugins/invadrox.c | 8 ++++++++
apps/plugins/jewels.c | 8 ++++++++
apps/plugins/jpeg.c | 11 +++++++++++
apps/plugins/logo.c | 7 +++++++
apps/plugins/mandelbrot.c | 14 ++++++++++++++
apps/plugins/matrix.c | 5 +++++
apps/plugins/mazezam.c | 12 ++++++++++++
apps/plugins/midi/midiplay.c | 9 +++++++++
apps/plugins/minesweeper.c | 8 ++++++++
apps/plugins/mosaique.c | 5 +++++
apps/plugins/mp3_encoder.c | 5 +++++
apps/plugins/mpegplayer/mpeg_settings.c | 10 ++++++++++
apps/plugins/mpegplayer/mpegplayer.c | 9 +++++++++
apps/plugins/oscilloscope.c | 13 +++++++++++++
apps/plugins/pacbox/pacbox.h | 12 ++++++++++++
apps/plugins/plasma.c | 6 ++++++
apps/plugins/pong.c | 7 +++++++
apps/plugins/reversi/reversi-gui.h | 9 +++++++++
apps/plugins/rockblox.c | 10 ++++++++++
apps/plugins/rockboy/rockboy.c | 9 +++++++++
apps/plugins/rockpaint.c | 11 +++++++++++
apps/plugins/sliding_puzzle.c | 7 +++++++
apps/plugins/snake.c | 6 ++++++
apps/plugins/snake2.c | 12 ++++++++++++
apps/plugins/snow.c | 2 ++
apps/plugins/sokoban.c | 14 ++++++++++++++
apps/plugins/solitaire.c | 21 +++++++++++++++++++++
apps/plugins/spacerocks.c | 13 +++++++++++++
apps/plugins/star.c | 11 +++++++++++
apps/plugins/starfield.c | 7 +++++++
apps/plugins/stats.c | 3 +++
apps/plugins/stopwatch.c | 7 +++++++
apps/plugins/sudoku/sudoku.h | 10 ++++++++++
apps/plugins/superdom.c | 8 ++++++++
apps/plugins/viewer.c | 9 +++++++++
apps/plugins/vu_meter.c | 9 +++++++++
apps/plugins/wormlet.c | 13 +++++++++++++
apps/plugins/xobox.c | 9 +++++++++
apps/plugins/zxbox/keymaps.h | 8 ++++++++
apps/plugins/zxbox/zxbox_keyb.c | 11 +++++++++++
57 files changed, 532 insertions(+), 2 deletions(-)
|
Closed by
Rob Purchase (shotofadds)
Sunday, 27 April 2008, 18:35 GMT+2
Reason for closing: Accepted
Additional comments about closing: Thanks :-)
Loading...
The touchscreen button definitions should be defined in a HAVE_TOUCHPAD block (common to the D2 and m:robe500), with the D2-specific section containing only definitions for the physcial buttons (PLUS/MINUS/MENU/POWER).
The attached patch adds touchpad support to the target build, by adapting JdGordon's existing m:robe500 work. It's far from perfect, for example menu navigation is difficult because it sometimes registers incorrect presses. But it does make plugins such as jewels and brickmania playable ;-)
Other touchpad-targets have to define a target section anyway, at least an empty one.
The touchpad definitions are overrideable: e.g. #define PLUGIN_EXIT POWER_BUTTON in target section overrides the one in touchpad section (made with #ifndef PLUGIN_EXIT ...)
Added some missing button description/help text for some plugins. Had to change #ifdef/#else logic in plasma.c and starfield.c, hoping not to break other targets.
Changed drivers/button.c, there was an assumption that every target has BUTTON_LEFT/BUTTON_RIGHT --> added a mapping from BUTTON_MIDLEFT to BUTTON_LEFT etc. Is needed for screen flipping.