mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-30 08:27:39 +00:00
Added support for the ASUS TV500BG Android gamepad
This commit is contained in:
parent
95d8396e9d
commit
cc30e1eb3d
2 changed files with 4 additions and 6 deletions
|
@ -78,7 +78,7 @@ static int instance_counter = 0;
|
|||
static int
|
||||
keycode_to_SDL(int keycode)
|
||||
{
|
||||
/* FIXME: If this function gets too unwiedly in the future, replace with a lookup table */
|
||||
/* FIXME: If this function gets too unwieldy in the future, replace with a lookup table */
|
||||
int button = 0;
|
||||
switch(keycode)
|
||||
{
|
||||
|
@ -110,6 +110,7 @@ keycode_to_SDL(int keycode)
|
|||
case AKEYCODE_BUTTON_START:
|
||||
button = SDL_CONTROLLER_BUTTON_START;
|
||||
break;
|
||||
case AKEYCODE_BACK:
|
||||
case AKEYCODE_BUTTON_SELECT:
|
||||
button = SDL_CONTROLLER_BUTTON_BACK;
|
||||
break;
|
||||
|
@ -148,10 +149,6 @@ keycode_to_SDL(int keycode)
|
|||
button = SDL_CONTROLLER_BUTTON_A;
|
||||
break;
|
||||
|
||||
case AKEYCODE_BACK:
|
||||
button = SDL_CONTROLLER_BUTTON_B;
|
||||
break;
|
||||
|
||||
/* More gamepad buttons (API 12), these get mapped to 20...35*/
|
||||
case AKEYCODE_BUTTON_1:
|
||||
case AKEYCODE_BUTTON_2:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue