mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(Apple) Buildfix
This commit is contained in:
parent
bc748951c6
commit
99cc4c59c3
@ -160,6 +160,8 @@ enum
|
||||
KEY_RightGUI = 231
|
||||
};
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../input_config.h"
|
||||
|
||||
int16_t apple_input_is_pressed(unsigned port_num,
|
||||
@ -167,7 +169,7 @@ int16_t apple_input_is_pressed(unsigned port_num,
|
||||
|
||||
int16_t apple_keyboard_state(unsigned id);
|
||||
|
||||
void apple_keyboard_find_any_key(void);
|
||||
int32_t apple_keyboard_find_any_key(void);
|
||||
|
||||
void apple_keyboard_free(void);
|
||||
|
||||
|
@ -38,9 +38,7 @@ int32_t cocoa_input_find_any_key(void)
|
||||
if (apple->sec_joypad)
|
||||
apple->sec_joypad->poll();
|
||||
|
||||
apple_keyboard_find_any_key();
|
||||
|
||||
return 0;
|
||||
return apple_keyboard_find_any_key();
|
||||
}
|
||||
|
||||
static int cocoa_input_find_any_button_ret(cocoa_input_data_t *apple,
|
||||
|
@ -326,13 +326,15 @@ int16_t apple_keyboard_state(unsigned id)
|
||||
return (id < RETROK_LAST) && apple_key_state[bit];
|
||||
}
|
||||
|
||||
void apple_keyboard_find_any_key(void)
|
||||
int32_t apple_keyboard_find_any_key(void)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; apple_key_name_map[i].hid_id; i++)
|
||||
if (apple_key_state[apple_key_name_map[i].hid_id])
|
||||
return apple_key_name_map[i].hid_id;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void apple_keyboard_free(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user