RetroArch
Enumerations | Functions | Variables
menu_input.c File Reference
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <string/stdstring.h>
#include "widgets/menu_input_dialog.h"
#include "widgets/menu_input_bind_dialog.h"
#include "widgets/menu_osk.h"
#include "menu_driver.h"
#include "menu_input.h"
#include "menu_animation.h"
#include "../configuration.h"
#include "../retroarch.h"
#include "../performance_counters.h"
#include "../tasks/tasks_internal.h"
Include dependency graph for menu_input.c:

Enumerations

enum  menu_mouse_action {
  MENU_MOUSE_ACTION_NONE = 0, MENU_MOUSE_ACTION_BUTTON_L, MENU_MOUSE_ACTION_BUTTON_L_TOGGLE, MENU_MOUSE_ACTION_BUTTON_L_SET_NAVIGATION,
  MENU_MOUSE_ACTION_BUTTON_R, MENU_MOUSE_ACTION_WHEEL_UP, MENU_MOUSE_ACTION_WHEEL_DOWN, MENU_MOUSE_ACTION_HORIZ_WHEEL_UP,
  MENU_MOUSE_ACTION_HORIZ_WHEEL_DOWN
}
 

Functions

static int menu_event_pointer (unsigned *action)
 
unsigned char menu_event_kb_is_set (enum retro_key key)
 
static void menu_event_kb_set_internal (unsigned idx, unsigned char key)
 
void menu_event_kb_set (bool down, enum retro_key key)
 
unsigned menu_event (input_bits_t *p_input, input_bits_t *p_trigger_input)
 
bool menu_input_mouse_check_vector_inside_hitbox (menu_input_ctx_hitbox_t *hitbox)
 
bool menu_input_ctl (enum menu_input_ctl_state state, void *data)
 
static int menu_input_mouse_post_iterate (uint64_t *input_mouse, menu_file_list_cbs_t *cbs, unsigned action, bool *mouse_activity)
 
static int menu_input_mouse_frame (menu_file_list_cbs_t *cbs, menu_entry_t *entry, unsigned action)
 
int16_t menu_input_pointer_state (enum menu_input_pointer_state state)
 
int16_t menu_input_mouse_state (enum menu_input_mouse_state state)
 
static int menu_input_pointer_post_iterate (menu_file_list_cbs_t *cbs, menu_entry_t *entry, unsigned action)
 
void menu_input_post_iterate (int *ret, unsigned action)
 

Variables

static unsigned char menu_keyboard_key_state [RETROK_LAST] = {0}
 
static unsigned mouse_old_x = 0
 
static unsigned mouse_old_y = 0
 
static menu_input_t menu_input_state
 
static rarch_timer_t mouse_activity_timer = {0}
 

Enumeration Type Documentation

◆ menu_mouse_action

Enumerator
MENU_MOUSE_ACTION_NONE 
MENU_MOUSE_ACTION_BUTTON_L 
MENU_MOUSE_ACTION_BUTTON_L_TOGGLE 
MENU_MOUSE_ACTION_BUTTON_L_SET_NAVIGATION 
MENU_MOUSE_ACTION_BUTTON_R 
MENU_MOUSE_ACTION_WHEEL_UP 
MENU_MOUSE_ACTION_WHEEL_DOWN 
MENU_MOUSE_ACTION_HORIZ_WHEEL_UP 
MENU_MOUSE_ACTION_HORIZ_WHEEL_DOWN 

Function Documentation

◆ menu_event()

unsigned menu_event ( input_bits_t p_input,
input_bits_t p_trigger_input 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_event_kb_is_set()

unsigned char menu_event_kb_is_set ( enum retro_key  key)
Here is the caller graph for this function:

◆ menu_event_kb_set()

void menu_event_kb_set ( bool  down,
enum retro_key  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_event_kb_set_internal()

static void menu_event_kb_set_internal ( unsigned  idx,
unsigned char  key 
)
static
Here is the caller graph for this function:

◆ menu_event_pointer()

static int menu_event_pointer ( unsigned *  action)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_input_ctl()

bool menu_input_ctl ( enum menu_input_ctl_state  state,
void data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_input_mouse_check_vector_inside_hitbox()

bool menu_input_mouse_check_vector_inside_hitbox ( menu_input_ctx_hitbox_t hitbox)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_input_mouse_frame()

static int menu_input_mouse_frame ( menu_file_list_cbs_t cbs,
menu_entry_t entry,
unsigned  action 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_input_mouse_post_iterate()

static int menu_input_mouse_post_iterate ( uint64_t input_mouse,
menu_file_list_cbs_t cbs,
unsigned  action,
bool mouse_activity 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_input_mouse_state()

Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_input_pointer_post_iterate()

static int menu_input_pointer_post_iterate ( menu_file_list_cbs_t cbs,
menu_entry_t entry,
unsigned  action 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_input_pointer_state()

Here is the caller graph for this function:

◆ menu_input_post_iterate()

void menu_input_post_iterate ( int *  ret,
unsigned  action 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ menu_input_state

menu_input_t menu_input_state
static

◆ menu_keyboard_key_state

unsigned char menu_keyboard_key_state[RETROK_LAST] = {0}
static

◆ mouse_activity_timer

rarch_timer_t mouse_activity_timer = {0}
static

◆ mouse_old_x

unsigned mouse_old_x = 0
static

◆ mouse_old_y

unsigned mouse_old_y = 0
static