RetroArch
Classes | Macros | Typedefs | Functions | Variables
qnx_input.c File Reference
#include <boolean.h>
#include <string/stdstring.h>
#include <screen/screen.h>
#include <bps/event.h>
#include <bps/navigator.h>
#include <sys/keycodes.h>
#include "../input_driver.h"
#include "../../gfx/video_driver.h"
#include "../../tasks/tasks_internal.h"
#include "../../command.h"
Include dependency graph for qnx_input.c:

Classes

struct  qnx_input_device_t
 
struct  input_pointer
 
struct  qnx_input
 

Macros

#define MAX_PADS   8
 
#define MAX_TOUCH   4
 
#define QNX_MAX_KEYS   (65535 + 7) / 8
 
#define TRACKPAD_CPI   500
 
#define TRACKPAD_THRESHOLD   TRACKPAD_CPI / 2
 

Typedefs

typedef struct qnx_input qnx_input_t
 

Functions

static void qnx_init_controller (qnx_input_t *qnx, qnx_input_device_t *controller)
 
static void qnx_process_keyboard_event (qnx_input_t *qnx, screen_event_t event, int type)
 
static void qnx_process_touch_event (qnx_input_t *qnx, screen_event_t event, int type)
 
static void qnx_handle_screen_event (qnx_input_t *qnx, bps_event_t *event)
 
static void qnx_handle_navigator_event (qnx_input_t *qnx, bps_event_t *event)
 
static voidqnx_input_init (const char *joypad_driver)
 
static void qnx_input_poll (void *data)
 
static bool qnx_keyboard_pressed (qnx_input_t *qnx, unsigned id)
 
static bool qnx_is_pressed (qnx_input_t *qnx, rarch_joypad_info_t joypad_info, const struct retro_keybind *binds, unsigned port, unsigned id)
 
static int16_t qnx_pointer_input_state (qnx_input_t *qnx, unsigned idx, unsigned id, bool screen)
 
static int16_t qnx_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 qnx_input_free_input (void *data)
 
static uint64_t qnx_input_get_capabilities (void *data)
 
static const input_device_driver_tqnx_input_get_joypad_driver (void *data)
 
static bool qnx_input_keyboard_mapping_is_blocked (void *data)
 
static void qnx_input_keyboard_mapping_set_block (void *data, bool value)
 

Variables

screen_context_t screen_ctx
 
input_driver_t input_qnx
 

Macro Definition Documentation

◆ MAX_PADS

#define MAX_PADS   8

◆ MAX_TOUCH

#define MAX_TOUCH   4

◆ QNX_MAX_KEYS

#define QNX_MAX_KEYS   (65535 + 7) / 8

◆ TRACKPAD_CPI

#define TRACKPAD_CPI   500

◆ TRACKPAD_THRESHOLD

#define TRACKPAD_THRESHOLD   TRACKPAD_CPI / 2

Typedef Documentation

◆ qnx_input_t

typedef struct qnx_input qnx_input_t

Function Documentation

◆ qnx_handle_navigator_event()

static void qnx_handle_navigator_event ( qnx_input_t qnx,
bps_event_t *  event 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ qnx_handle_screen_event()

static void qnx_handle_screen_event ( qnx_input_t qnx,
bps_event_t *  event 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ qnx_init_controller()

static void qnx_init_controller ( qnx_input_t qnx,
qnx_input_device_t controller 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ qnx_input_free_input()

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

◆ qnx_input_get_capabilities()

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

◆ qnx_input_get_joypad_driver()

static const input_device_driver_t* qnx_input_get_joypad_driver ( void data)
static

◆ qnx_input_init()

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

◆ qnx_input_keyboard_mapping_is_blocked()

static bool qnx_input_keyboard_mapping_is_blocked ( void data)
static

◆ qnx_input_keyboard_mapping_set_block()

static void qnx_input_keyboard_mapping_set_block ( void data,
bool  value 
)
static

◆ qnx_input_poll()

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

◆ qnx_input_state()

static int16_t qnx_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:

◆ qnx_is_pressed()

static bool qnx_is_pressed ( qnx_input_t qnx,
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:

◆ qnx_keyboard_pressed()

static bool qnx_keyboard_pressed ( qnx_input_t qnx,
unsigned  id 
)
static
Here is the caller graph for this function:

◆ qnx_pointer_input_state()

static int16_t qnx_pointer_input_state ( qnx_input_t qnx,
unsigned  idx,
unsigned  id,
bool  screen 
)
static
Here is the caller graph for this function:

◆ qnx_process_keyboard_event()

static void qnx_process_keyboard_event ( qnx_input_t qnx,
screen_event_t  event,
int  type 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ qnx_process_touch_event()

static void qnx_process_touch_event ( qnx_input_t qnx,
screen_event_t  event,
int  type 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ input_qnx

input_driver_t input_qnx
Initial value:
= {
"qnx_input",
}
static bool qnx_input_keyboard_mapping_is_blocked(void *data)
Definition: qnx_input.c:833
static void * qnx_input_init(const char *joypad_driver)
Definition: qnx_input.c:665
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void qnx_input_poll(void *data)
Definition: qnx_input.c:701
static void qnx_input_free_input(void *data)
Definition: qnx_input.c:808
static uint64_t qnx_input_get_capabilities(void *data)
Definition: qnx_input.c:814
static const input_device_driver_t * qnx_input_get_joypad_driver(void *data)
Definition: qnx_input.c:827
static int16_t qnx_input_state(void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
Definition: qnx_input.c:785
static void qnx_input_keyboard_mapping_set_block(void *data, bool value)
Definition: qnx_input.c:841

◆ screen_ctx

screen_context_t screen_ctx