RetroArch
Classes | Macros | Typedefs | Functions | Variables
wiiu_input.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <boolean.h>
#include <libretro.h>
#include <retro_miscellaneous.h>
#include <wiiu/nsyskbd.h>
#include <wiiu/vpad.h>
#include "../input_driver.h"
#include "../input_keymaps.h"
#include "wiiu_dbg.h"
Include dependency graph for wiiu_input.c:

Classes

struct  wiiu_input
 

Macros

#define MAX_PADS   5
 

Typedefs

typedef struct wiiu_input wiiu_input_t
 

Functions

void kb_connection_callback (KBDKeyEvent *key)
 
void kb_disconnection_callback (KBDKeyEvent *key)
 
void kb_key_callback (KBDKeyEvent *key)
 
static int16_t wiiu_pointer_device_state (wiiu_input_t *wiiu, unsigned id)
 
static void wiiu_input_poll (void *data)
 
static bool wiiu_key_pressed (int key)
 
static int16_t wiiu_input_state (void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
 
static void wiiu_input_free_input (void *data)
 
static voidwiiu_input_init (const char *joypad_driver)
 
static uint64_t wiiu_input_get_capabilities (void *data)
 
static const input_device_driver_twiiu_input_get_joypad_driver (void *data)
 
static void wiiu_input_grab_mouse (void *data, bool state)
 
static bool wiiu_input_set_rumble (void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
static bool wiiu_input_keyboard_mapping_is_blocked (void *data)
 
static void wiiu_input_keyboard_mapping_set_block (void *data, bool value)
 

Variables

static uint8_t keyboardChannel = 0x00
 
static bool keyboardState [RETROK_LAST] = { 0 }
 
input_driver_t input_wiiu
 

Macro Definition Documentation

◆ MAX_PADS

#define MAX_PADS   5

Typedef Documentation

◆ wiiu_input_t

typedef struct wiiu_input wiiu_input_t

Function Documentation

◆ kb_connection_callback()

void kb_connection_callback ( KBDKeyEvent key)
Here is the caller graph for this function:

◆ kb_disconnection_callback()

void kb_disconnection_callback ( KBDKeyEvent key)
Here is the caller graph for this function:

◆ kb_key_callback()

void kb_key_callback ( KBDKeyEvent key)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_input_free_input()

static void wiiu_input_free_input ( void data)
static
Here is the call graph for this function:

◆ wiiu_input_get_capabilities()

static uint64_t wiiu_input_get_capabilities ( void data)
static
Here is the call graph for this function:

◆ wiiu_input_get_joypad_driver()

static const input_device_driver_t* wiiu_input_get_joypad_driver ( void data)
static

◆ wiiu_input_grab_mouse()

static void wiiu_input_grab_mouse ( void data,
bool  state 
)
static
Here is the call graph for this function:

◆ wiiu_input_init()

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

◆ wiiu_input_keyboard_mapping_is_blocked()

static bool wiiu_input_keyboard_mapping_is_blocked ( void data)
static

◆ wiiu_input_keyboard_mapping_set_block()

static void wiiu_input_keyboard_mapping_set_block ( void data,
bool  value 
)
static

◆ wiiu_input_poll()

static void wiiu_input_poll ( void data)
static

◆ wiiu_input_set_rumble()

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

◆ wiiu_input_state()

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

◆ wiiu_key_pressed()

static bool wiiu_key_pressed ( int  key)
static
Here is the caller graph for this function:

◆ wiiu_pointer_device_state()

static int16_t wiiu_pointer_device_state ( wiiu_input_t wiiu,
unsigned  id 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ input_wiiu

input_driver_t input_wiiu
Initial value:
= {
"wiiu",
}
static void wiiu_input_keyboard_mapping_set_block(void *data, bool value)
Definition: wiiu_input.c:247
static const input_device_driver_t * wiiu_input_get_joypad_driver(void *data)
Definition: wiiu_input.c:214
static uint64_t wiiu_input_get_capabilities(void *data)
Definition: wiiu_input.c:204
static void wiiu_input_grab_mouse(void *data, bool state)
Definition: wiiu_input.c:222
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void wiiu_input_free_input(void *data)
Definition: wiiu_input.c:175
static int16_t wiiu_input_state(void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
Definition: wiiu_input.c:144
static void * wiiu_input_init(const char *joypad_driver)
Definition: wiiu_input.c:187
static bool wiiu_input_set_rumble(void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
Definition: wiiu_input.c:228
static void wiiu_input_poll(void *data)
Definition: wiiu_input.c:120
static bool wiiu_input_keyboard_mapping_is_blocked(void *data)
Definition: wiiu_input.c:239

◆ keyboardChannel

uint8_t keyboardChannel = 0x00
static

◆ keyboardState

bool keyboardState[RETROK_LAST] = { 0 }
static