RetroArch
Macros | Functions | Variables
xenon360_input.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <input/input.h>
#include <usb/usbmain.h>
#include <libretro.h>
#include "../input_driver.h"
Include dependency graph for xenon360_input.c:

Macros

#define MAX_PADS   4
 

Functions

static void xenon360_input_poll (void *data)
 
static int16_t xenon360_input_state (void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, bool port, unsigned device, unsigned idx, unsigned id)
 
static void xenon360_input_free_input (void *data)
 
static voidxenon360_input_init (const char *joypad_driver)
 
static uint64_t xenon360_input_get_capabilities (void *data)
 
static void xenon360_input_grab_mouse (void *data, bool state)
 
static bool xenon360_input_set_rumble (void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 

Variables

static uint64_t state [MAX_PADS]
 
input_driver_t input_xenon360
 

Macro Definition Documentation

◆ MAX_PADS

#define MAX_PADS   4

Function Documentation

◆ xenon360_input_free_input()

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

◆ xenon360_input_get_capabilities()

static uint64_t xenon360_input_get_capabilities ( void data)
static

◆ xenon360_input_grab_mouse()

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

◆ xenon360_input_init()

static void* xenon360_input_init ( const char *  joypad_driver)
static

◆ xenon360_input_poll()

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

◆ xenon360_input_set_rumble()

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

◆ xenon360_input_state()

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

Variable Documentation

◆ input_xenon360

input_driver_t input_xenon360
Initial value:
= {
"xenon360",
}
static void * xenon360_input_init(const char *joypad_driver)
Definition: xenon360_input.c:91
static uint64_t xenon360_input_get_capabilities(void *data)
Definition: xenon360_input.c:96
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static int16_t xenon360_input_state(void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, bool port, unsigned device, unsigned idx, unsigned id)
Definition: xenon360_input.c:61
static bool xenon360_input_set_rumble(void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
Definition: xenon360_input.c:111
static void xenon360_input_free_input(void *data)
Definition: xenon360_input.c:86
static void xenon360_input_grab_mouse(void *data, bool state)
Definition: xenon360_input.c:105
static void xenon360_input_poll(void *data)
Definition: xenon360_input.c:35

◆ state

uint64_t state[MAX_PADS]
static