Document some input-related variables

This commit is contained in:
Vladimir Panteleev 2014-09-28 10:19:44 +00:00
parent c5aa3e7b61
commit 85f745e587
2 changed files with 13 additions and 3 deletions

View File

@ -433,12 +433,13 @@ typedef struct driver
const location_driver_t *location;
struct retro_callbacks retro_ctx;
void *osk_data;
void *camera_data;
void *location_data;
void *audio_data;
void *video_data;
void *input_data;
void *osk_data;
void *camera_data;
void *location_data;
#ifdef HAVE_MENU
menu_handle_t *menu;
const menu_ctx_driver_t *menu_ctx;

View File

@ -67,10 +67,19 @@ struct menu_bind_state
typedef struct
{
/* Keys down last frame. Used for trigger_state */
uint64_t old_input_state;
/* New keys pressed down this frame */
uint64_t trigger_state;
/* Whether any repeating keys are being held down, */
/* and key repeat should be handled */
/* TODO: should be a mask of keys we are repeating, */
/* instead of repeating all keys being held down. */
bool do_held;
/* Used for key repeat */
unsigned delay_timer;
unsigned delay_count;