mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
dont need a short, only move first bit
This commit is contained in:
parent
b7a8ff9395
commit
28a43d9440
@ -41,7 +41,7 @@
|
|||||||
#include "../retroarch.h"
|
#include "../retroarch.h"
|
||||||
#include "../runloop.h"
|
#include "../runloop.h"
|
||||||
|
|
||||||
static unsigned short menu_keyboard_key_state[RETROK_LAST];
|
static unsigned char menu_keyboard_key_state[RETROK_LAST];
|
||||||
|
|
||||||
static int menu_event_pointer(unsigned *action)
|
static int menu_event_pointer(unsigned *action)
|
||||||
{
|
{
|
||||||
@ -72,7 +72,7 @@ static int menu_event_pointer(unsigned *action)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned short menu_event_keyboard_is_set(enum retro_key key)
|
unsigned char menu_event_keyboard_is_set(enum retro_key key)
|
||||||
{
|
{
|
||||||
return menu_keyboard_key_state[key];
|
return menu_keyboard_key_state[key];
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ void menu_event_keyboard_set(bool down, enum retro_key key)
|
|||||||
|
|
||||||
for (i = 0; i < RETROK_LAST; i++)
|
for (i = 0; i < RETROK_LAST; i++)
|
||||||
{
|
{
|
||||||
menu_keyboard_key_state[i] = (menu_keyboard_key_state[i] & 3) << 1;
|
menu_keyboard_key_state[i] = (menu_keyboard_key_state[i] & 1) << 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -37,7 +37,7 @@ unsigned menu_event(uint64_t input, uint64_t trigger_state);
|
|||||||
|
|
||||||
void menu_event_keyboard_set(bool down, enum retro_key key);
|
void menu_event_keyboard_set(bool down, enum retro_key key);
|
||||||
|
|
||||||
unsigned short menu_event_keyboard_is_set(enum retro_key key);
|
unsigned char menu_event_keyboard_is_set(enum retro_key key);
|
||||||
|
|
||||||
unsigned kbd_index;
|
unsigned kbd_index;
|
||||||
char kbd_grid[41];
|
char kbd_grid[41];
|
||||||
|
Loading…
Reference in New Issue
Block a user