RetroArch
Classes | Functions | Variables
winraw_input.c File Reference
#include <windows.h>
#include "../input_driver.h"
#include "../input_keymaps.h"
#include "../../configuration.h"
#include "../../gfx/video_driver.h"
#include "../../verbosity.h"
Include dependency graph for winraw_input.c:

Classes

struct  winraw_keyboard_t
 
struct  winraw_mouse_t
 
struct  winraw_input_t
 

Functions

static HWND winraw_create_window (WNDPROC wnd_proc)
 
static void winraw_destroy_window (HWND wnd)
 
static bool winraw_set_keyboard_input (HWND window)
 
static void winraw_log_mice_info (winraw_mouse_t *mice, unsigned mouse_cnt)
 
static bool winraw_init_devices (winraw_mouse_t **mice, unsigned *mouse_cnt)
 
static bool winraw_set_mouse_input (HWND window, bool grab)
 
static int16_t winraw_lightgun_aiming_state (winraw_input_t *wr, unsigned port, unsigned id)
 
static int16_t winraw_mouse_state (winraw_input_t *wr, unsigned port, bool abs, unsigned id)
 
static bool winraw_keyboard_pressed (winraw_input_t *wr, unsigned key)
 
static bool winraw_mbutton_pressed (winraw_input_t *wr, unsigned port, unsigned key)
 
static bool winraw_is_pressed (winraw_input_t *wr, rarch_joypad_info_t joypad_info, const struct retro_keybind *binds, unsigned port, unsigned id)
 
static void winraw_init_mouse_xy_mapping ()
 
static int16_t winraw_deprecated_lightgun_state (winraw_input_t *wr, unsigned port, unsigned id)
 
static void winraw_update_mouse_state (winraw_mouse_t *mouse, RAWMOUSE *state)
 
static LRESULT CALLBACK winraw_callback (HWND wnd, UINT msg, WPARAM wpar, LPARAM lpar)
 
static voidwinraw_init (const char *joypad_driver)
 
static void winraw_poll (void *d)
 
static int16_t winraw_input_state (void *d, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned index, unsigned id)
 
static void winraw_free (void *d)
 
static uint64_t winraw_get_capabilities (void *u)
 
static void winraw_grab_mouse (void *d, bool grab)
 
static bool winraw_set_rumble (void *d, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
static const input_device_driver_twinraw_get_joypad_driver (void *d)
 
static bool winraw_keyboard_mapping_is_blocked (void *d)
 
static void winraw_keyboard_mapping_set_block (void *d, bool block)
 

Variables

static winraw_keyboard_tg_keyboard = NULL
 
static winraw_mouse_tg_mice = NULL
 
static unsigned g_mouse_cnt = 0
 
static bool g_mouse_xy_mapping_ready = false
 
static double g_view_abs_ratio_x = 0.0
 
static double g_view_abs_ratio_y = 0.0
 
input_driver_t input_winraw
 

Function Documentation

◆ winraw_callback()

static LRESULT CALLBACK winraw_callback ( HWND  wnd,
UINT  msg,
WPARAM  wpar,
LPARAM  lpar 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_create_window()

static HWND winraw_create_window ( WNDPROC  wnd_proc)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_deprecated_lightgun_state()

static int16_t winraw_deprecated_lightgun_state ( winraw_input_t wr,
unsigned  port,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_destroy_window()

static void winraw_destroy_window ( HWND  wnd)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_free()

static void winraw_free ( void d)
static
Here is the call graph for this function:

◆ winraw_get_capabilities()

static uint64_t winraw_get_capabilities ( void u)
static

◆ winraw_get_joypad_driver()

static const input_device_driver_t* winraw_get_joypad_driver ( void d)
static

◆ winraw_grab_mouse()

static void winraw_grab_mouse ( void d,
bool  grab 
)
static
Here is the call graph for this function:

◆ winraw_init()

static void* winraw_init ( const char *  joypad_driver)
static
Here is the call graph for this function:

◆ winraw_init_devices()

static bool winraw_init_devices ( winraw_mouse_t **  mice,
unsigned *  mouse_cnt 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_init_mouse_xy_mapping()

static void winraw_init_mouse_xy_mapping ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_input_state()

static int16_t winraw_input_state ( void d,
rarch_joypad_info_t  joypad_info,
const struct retro_keybind **  binds,
unsigned  port,
unsigned  device,
unsigned  index,
unsigned  id 
)
static
Here is the call graph for this function:

◆ winraw_is_pressed()

static bool winraw_is_pressed ( winraw_input_t wr,
rarch_joypad_info_t  joypad_info,
const struct retro_keybind binds,
unsigned  port,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_keyboard_mapping_is_blocked()

static bool winraw_keyboard_mapping_is_blocked ( void d)
static

◆ winraw_keyboard_mapping_set_block()

static void winraw_keyboard_mapping_set_block ( void d,
bool  block 
)
static

◆ winraw_keyboard_pressed()

static bool winraw_keyboard_pressed ( winraw_input_t wr,
unsigned  key 
)
static
Here is the caller graph for this function:

◆ winraw_lightgun_aiming_state()

static int16_t winraw_lightgun_aiming_state ( winraw_input_t wr,
unsigned  port,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_log_mice_info()

static void winraw_log_mice_info ( winraw_mouse_t mice,
unsigned  mouse_cnt 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_mbutton_pressed()

static bool winraw_mbutton_pressed ( winraw_input_t wr,
unsigned  port,
unsigned  key 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_mouse_state()

static int16_t winraw_mouse_state ( winraw_input_t wr,
unsigned  port,
bool  abs,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_poll()

static void winraw_poll ( void d)
static
Here is the call graph for this function:

◆ winraw_set_keyboard_input()

static bool winraw_set_keyboard_input ( HWND  window)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_set_mouse_input()

static bool winraw_set_mouse_input ( HWND  window,
bool  grab 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winraw_set_rumble()

static bool winraw_set_rumble ( void d,
unsigned  port,
enum retro_rumble_effect  effect,
uint16_t  strength 
)
static
Here is the call graph for this function:

◆ winraw_update_mouse_state()

static void winraw_update_mouse_state ( winraw_mouse_t mouse,
RAWMOUSE *  state 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_keyboard

winraw_keyboard_t* g_keyboard = NULL
static

◆ g_mice

winraw_mouse_t* g_mice = NULL
static

◆ g_mouse_cnt

unsigned g_mouse_cnt = 0
static

◆ g_mouse_xy_mapping_ready

bool g_mouse_xy_mapping_ready = false
static

◆ g_view_abs_ratio_x

double g_view_abs_ratio_x = 0.0
static

◆ g_view_abs_ratio_y

double g_view_abs_ratio_y = 0.0
static

◆ input_winraw

input_driver_t input_winraw
Initial value:
= {
"raw",
}
static void winraw_keyboard_mapping_set_block(void *d, bool block)
Definition: winraw_input.c:829
static bool winraw_set_rumble(void *d, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
Definition: winraw_input.c:807
static int16_t winraw_input_state(void *d, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned index, unsigned id)
Definition: winraw_input.c:696
static void winraw_free(void *d)
Definition: winraw_input.c:766
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool winraw_keyboard_mapping_is_blocked(void *d)
Definition: winraw_input.c:822
static void winraw_poll(void *d)
Definition: winraw_input.c:662
static uint64_t winraw_get_capabilities(void *u)
Definition: winraw_input.c:783
static const input_device_driver_t * winraw_get_joypad_driver(void *d)
Definition: winraw_input.c:815
static void * winraw_init(const char *joypad_driver)
Definition: winraw_input.c:598
static void winraw_grab_mouse(void *d, bool grab)
Definition: winraw_input.c:792