Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Data Structures | Macros | Functions | Variables
input_devices.c File Reference
#include "xemu/emutools.h"
#include "xemu/emutools_hid.h"
#include "enterprise128.h"
#include "dave.h"
#include "ui.h"
#include "input_devices.h"
Include dependency graph for input_devices.c:

Go to the source code of this file.

Data Structures

struct  mouse_modes_st


#define WATCHDOG_USEC(n)   (n / 64)
#define BUTTON_MAIN   1
#define BUTTON_OTHER   2
#define BUTTON_EX3   3
#define BUTTON_EX4   4
#define BUTTON_EX5   5
#define J_COLUMN   1
#define K_COLUMN   2
#define LAST_MOUSE_MODE   ((sizeof(mouse_modes) / sizeof(const struct mouse_modes_st)) - 1)
#define JOYSTICK_SCAN(num, dir)   joystick_scan(num, dir)


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)
int joystick_scan (int num, int dir)
Uint8 read_control_port_bits (void)
void mouse_check_data_shift (Uint8 val)
int mouse_setup (int cfg)
int emu_callback_key (int pos, SDL_Scancode key, int pressed, int handled)


int mouse_grab = 0
Uint32 raster_time
int show_keys = 0
const struct KeyMappingDefault ep128_key_map []
int mouse_mode

Macro Definition Documentation


#define BUTTON_EX3   3

Definition at line 157 of file input_devices.c.


#define BUTTON_EX4   4

Definition at line 158 of file input_devices.c.


#define BUTTON_EX5   5

Definition at line 159 of file input_devices.c.


#define BUTTON_MAIN   1

Definition at line 155 of file input_devices.c.


#define BUTTON_OTHER   2

Definition at line 156 of file input_devices.c.


#define J_COLUMN   1

Definition at line 162 of file input_devices.c.


#define JOYSTICK_SCAN (   num,
)    joystick_scan(num, dir)

Definition at line 227 of file input_devices.c.


#define K_COLUMN   2

Definition at line 163 of file input_devices.c.


#define LAST_MOUSE_MODE   ((sizeof(mouse_modes) / sizeof(const struct mouse_modes_st)) - 1)

Definition at line 222 of file input_devices.c.


#define WATCHDOG_USEC (   n)    (n / 64)

Definition at line 149 of file input_devices.c.

Function Documentation

◆ emu_callback_key()

int emu_callback_key ( int  pos,
SDL_Scancode  key,
int  pressed,
int  handled 

Definition at line 519 of file input_devices.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.

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

◆ joystick_scan()

int joystick_scan ( int  num,
int  dir 

Definition at line 406 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

◆ ep128_key_map

const struct KeyMappingDefault ep128_key_map[]

Definition at line 42 of file input_devices.c.

◆ mouse_grab

int mouse_grab = 0

Definition at line 28 of file input_devices.c.

◆ mouse_mode

int mouse_mode

Definition at line 225 of file input_devices.c.

◆ raster_time

Uint32 raster_time

Definition at line 56 of file nick.c.

◆ show_keys

int show_keys = 0

Definition at line 39 of file input_devices.c.