Author Topic: SDL Keys  (Read 5282 times)

gp2xs

  • Guest
SDL Keys
« on: October 16, 2009, 10:19:31 pm »
These are the Dingux SDL Keys:

Up -> SDLK_UP 237
Down -> SDLK_DOWN 274
Left -> SDLK_LEFT 276
Right -> SDLK_RIGHT 275
A -> SDLK_LCTRL 306
B -> SDLK_LALT 308
X -> SDLK_SPACE 32
Y -> SDLK_LSHIFT 304
L -> SDLK_TAB 9
R -> SDLK_BACKSPACE 8
Select -> SDLK_ESCAPE 27
Start -> SDLK_RETURN 13

DEADBEEF

  • Posts: 25
    • たのしいDINGUX
Re: SDL Keys
« Reply #1 on: October 16, 2009, 10:38:18 pm »
I use always "dingoo.h" .
It's origin was in "snes9x-sdl for dingux source-code" , and I replaced the numbers to SDLK-defined words.
"DINGOO_BUTTON_END" means PowerSwitch, but it's a little strange.

dingoo.h
Code: [Select]
#define DINGOO_BUTTON_UP            SDLK_UP
#define DINGOO_BUTTON_DOWN          SDLK_DOWN
#define DINGOO_BUTTON_RIGHT         SDLK_RIGHT
#define DINGOO_BUTTON_LEFT          SDLK_LEFT
#define DINGOO_BUTTON_R             SDLK_BACKSPACE
#define DINGOO_BUTTON_L             SDLK_TAB
#define DINGOO_BUTTON_A             SDLK_LCTRL
#define DINGOO_BUTTON_B             SDLK_LALT
#define DINGOO_BUTTON_X             SDLK_SPACE
#define DINGOO_BUTTON_Y             SDLK_LSHIFT
#define DINGOO_BUTTON_SELECT        SDLK_ESCAPE
#define DINGOO_BUTTON_START         SDLK_RETURN
#define DINGOO_BUTTON_END           SDLK_UNKNOWN