mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -04:00
build, odbeta and opendingux cleanup
This commit is contained in:
parent
85174a6d8d
commit
58fc34b1d6
14 changed files with 185 additions and 78 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "../libpicofe/input.h"
|
||||
#include "../libpicofe/in_sdl.h"
|
||||
#include "../libpicofe/plat.h"
|
||||
#include "../common/input_pico.h"
|
||||
#include "../common/plat_sdl.h"
|
||||
|
||||
|
@ -33,7 +34,7 @@ const struct in_default_bind in_sdl_defbinds[] = {
|
|||
{ 0, 0, 0 }
|
||||
};
|
||||
|
||||
const struct menu_keymap in_sdl_key_map[] = {
|
||||
const struct menu_keymap _in_sdl_key_map[] = {
|
||||
{ SDLK_UP, PBTN_UP },
|
||||
{ SDLK_DOWN, PBTN_DOWN },
|
||||
{ SDLK_LEFT, PBTN_LEFT },
|
||||
|
@ -45,9 +46,10 @@ const struct menu_keymap in_sdl_key_map[] = {
|
|||
{ SDLK_TAB, PBTN_R },
|
||||
{ SDLK_BACKSPACE, PBTN_L },
|
||||
};
|
||||
const int in_sdl_key_map_sz = sizeof(in_sdl_key_map) / sizeof(in_sdl_key_map[0]);
|
||||
const int in_sdl_key_map_sz = sizeof(_in_sdl_key_map) / sizeof(_in_sdl_key_map[0]);
|
||||
const struct menu_keymap *in_sdl_key_map = _in_sdl_key_map;
|
||||
|
||||
const struct menu_keymap in_sdl_joy_map[] = {
|
||||
const struct menu_keymap _in_sdl_joy_map[] = {
|
||||
{ SDLK_UP, PBTN_UP },
|
||||
{ SDLK_DOWN, PBTN_DOWN },
|
||||
{ SDLK_LEFT, PBTN_LEFT },
|
||||
|
@ -58,6 +60,11 @@ const struct menu_keymap in_sdl_joy_map[] = {
|
|||
{ SDLK_WORLD_2, PBTN_MA2 },
|
||||
{ SDLK_WORLD_3, PBTN_MA3 },
|
||||
};
|
||||
const int in_sdl_joy_map_sz = sizeof(in_sdl_joy_map) / sizeof(in_sdl_joy_map[0]);
|
||||
const int in_sdl_joy_map_sz = sizeof(_in_sdl_joy_map) / sizeof(_in_sdl_joy_map[0]);
|
||||
const struct menu_keymap *in_sdl_joy_map = _in_sdl_joy_map;
|
||||
|
||||
const char * const (*in_sdl_key_names)[SDLK_LAST] = NULL;
|
||||
const char * const *in_sdl_key_names = NULL;
|
||||
|
||||
void plat_target_setup_input(void)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue