Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
input_devices.h File Reference
#include <xemu/emutools_hid.h>
Include dependency graph for input_devices.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define JOY_SCAN_FIRE1   0
#define JOY_SCAN_UP   1
#define JOY_SCAN_DOWN   2
#define JOY_SCAN_LEFT   3
#define JOY_SCAN_RIGHT   4
#define JOY_SCAN_FIRE2   5
#define JOY_SCAN_FIRE3   6
#define VIRTUAL_SHIFT_POS   0x07


int mouse_mode_description (int cfg, char *buffer)
void mouse_reset_button (void)
void emu_mouse_button (Uint8 sdl_button, int press)
void emu_mouse_motion (int dx, int dy)
void emu_mouse_wheel (int x, int y, int flipped)
void mouse_reset (void)
Uint8 read_control_port_bits (void)
void mouse_check_data_shift (Uint8 val)
int mouse_setup (int cfg)
int emu_kbd (SDL_Keysym sym, int press)


const struct KeyMappingDefault ep128_key_map []
int mouse_grab
int show_keys
int mouse_mode

Macro Definition Documentation


#define JOY_SCAN_DOWN   2

Definition at line 26 of file input_devices.h.


#define JOY_SCAN_FIRE1   0

Definition at line 24 of file input_devices.h.


#define JOY_SCAN_FIRE2   5

Definition at line 29 of file input_devices.h.


#define JOY_SCAN_FIRE3   6

Definition at line 30 of file input_devices.h.


#define JOY_SCAN_LEFT   3

Definition at line 27 of file input_devices.h.


#define JOY_SCAN_RIGHT   4

Definition at line 28 of file input_devices.h.


#define JOY_SCAN_UP   1

Definition at line 25 of file input_devices.h.


#define VIRTUAL_SHIFT_POS   0x07

Definition at line 32 of file input_devices.h.

Function Documentation

◆ emu_kbd()

int emu_kbd ( SDL_Keysym  sym,
int  press 

Definition at line 420 of file input.c.

◆ emu_mouse_button()

void emu_mouse_button ( Uint8  sdl_button,
int  press 

Definition at line 274 of file input_devices.c.

◆ emu_mouse_motion()

void emu_mouse_motion ( int  dx,
int  dy 

Definition at line 343 of file input_devices.c.

◆ emu_mouse_wheel()

void emu_mouse_wheel ( int  x,
int  y,
int  flipped 

Definition at line 360 of file input_devices.c.

◆ mouse_check_data_shift()

void mouse_check_data_shift ( Uint8  val)

Definition at line 463 of file input_devices.c.

◆ mouse_mode_description()

int mouse_mode_description ( int  cfg,
char *  buffer 

Definition at line 231 of file input_devices.c.

◆ mouse_reset()

void mouse_reset ( void  )

Definition at line 378 of file input_devices.c.

◆ mouse_reset_button()

void mouse_reset_button ( void  )

Definition at line 255 of file input_devices.c.

◆ mouse_setup()

int mouse_setup ( int  cfg)

Definition at line 500 of file input_devices.c.

◆ read_control_port_bits()

Uint8 read_control_port_bits ( void  )

Definition at line 416 of file input_devices.c.

Variable Documentation

◆ ep128_key_map

const struct KeyMappingDefault ep128_key_map[]

Definition at line 42 of file input_devices.c.

◆ mouse_grab

int mouse_grab

Definition at line 28 of file input_devices.c.

◆ mouse_mode

int mouse_mode

Definition at line 36 of file input_devices.h.

◆ show_keys

int show_keys

Definition at line 36 of file input_devices.h.