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

Go to the source code of this file.

Macros

#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
 

Functions

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)
 

Variables

int mouse_grab
 
int show_keys
 
int mouse_mode
 

Macro Definition Documentation

◆ JOY_SCAN_DOWN

#define JOY_SCAN_DOWN   2

Definition at line 26 of file input.h.

◆ JOY_SCAN_FIRE1

#define JOY_SCAN_FIRE1   0

Definition at line 24 of file input.h.

◆ JOY_SCAN_FIRE2

#define JOY_SCAN_FIRE2   5

Definition at line 29 of file input.h.

◆ JOY_SCAN_FIRE3

#define JOY_SCAN_FIRE3   6

Definition at line 30 of file input.h.

◆ JOY_SCAN_LEFT

#define JOY_SCAN_LEFT   3

Definition at line 27 of file input.h.

◆ JOY_SCAN_RIGHT

#define JOY_SCAN_RIGHT   4

Definition at line 28 of file input.h.

◆ JOY_SCAN_UP

#define JOY_SCAN_UP   1

Definition at line 25 of file input.h.

Function Documentation

◆ emu_kbd()

int emu_kbd ( SDL_Keysym  sym,
int  press 
)

Definition at line 420 of file input.c.

Here is the call graph for this function:

◆ emu_mouse_button()

void emu_mouse_button ( Uint8  sdl_button,
int  press 
)

Definition at line 274 of file input_devices.c.

Here is the call graph for this function:

◆ 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.

Here is the caller graph for this function:

◆ 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.

Here is the caller graph for this function:

◆ mouse_reset_button()

void mouse_reset_button ( void  )

Definition at line 255 of file input_devices.c.

Here is the caller graph for this function:

◆ 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.

Here is the caller graph for this function:

Variable Documentation

◆ mouse_grab

int mouse_grab

Definition at line 28 of file input_devices.c.

◆ mouse_mode

int mouse_mode

Definition at line 32 of file input.h.

◆ show_keys

int show_keys

Definition at line 32 of file input.h.