Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
input_devices.h
Go to the documentation of this file.
1 /* Minimalistic Enterprise-128 emulator with focus on "exotic" hardware
2  Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
3  Copyright (C)2015-2016,2020 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18 
19 #ifndef XEMU_EP128_INPUT_DEVICES_H_INCLUDED
20 #define XEMU_EP128_INPUT_DEVICES_H_INCLUDED
21 
22 #include <xemu/emutools_hid.h>
23 
24 #define JOY_SCAN_FIRE1 0
25 #define JOY_SCAN_UP 1
26 #define JOY_SCAN_DOWN 2
27 #define JOY_SCAN_LEFT 3
28 #define JOY_SCAN_RIGHT 4
29 #define JOY_SCAN_FIRE2 5
30 #define JOY_SCAN_FIRE3 6
31 
32 #define VIRTUAL_SHIFT_POS 0x07
33 
34 extern const struct KeyMappingDefault ep128_key_map[];
35 
37 
38 extern int mouse_mode_description ( int cfg, char *buffer );
39 extern void mouse_reset_button ( void );
40 extern void emu_mouse_button ( Uint8 sdl_button, int press );
41 extern void emu_mouse_motion ( int dx, int dy );
42 extern void emu_mouse_wheel ( int x, int y, int flipped );
43 extern void mouse_reset ( void );
44 extern Uint8 read_control_port_bits ( void );
45 extern void mouse_check_data_shift ( Uint8 val );
46 extern int mouse_setup ( int cfg );
47 extern int emu_kbd ( SDL_Keysym sym, int press );
48 
49 #endif
mouse_grab
int mouse_grab
Definition: input_devices.c:28
mouse_setup
int mouse_setup(int cfg)
Definition: input_devices.c:500
mouse_reset_button
void mouse_reset_button(void)
Definition: input_devices.c:255
mouse_check_data_shift
void mouse_check_data_shift(Uint8 val)
Definition: input_devices.c:463
Uint8
uint8_t Uint8
Definition: fat32.c:51
show_keys
int show_keys
Definition: input_devices.h:36
x
int x
Definition: console.c:27
emu_mouse_wheel
void emu_mouse_wheel(int x, int y, int flipped)
Definition: input_devices.c:360
emu_kbd
int emu_kbd(SDL_Keysym sym, int press)
Definition: input.c:420
KeyMappingDefault
Definition: emutools_hid.h:24
mouse_mode_description
int mouse_mode_description(int cfg, char *buffer)
Definition: input_devices.c:231
read_control_port_bits
Uint8 read_control_port_bits(void)
Definition: input_devices.c:416
mouse_mode
int mouse_mode
Definition: input_devices.h:36
ep128_key_map
const struct KeyMappingDefault ep128_key_map[]
Definition: input_devices.c:42
emu_mouse_button
void emu_mouse_button(Uint8 sdl_button, int press)
Definition: input_devices.c:274
y
int y
Definition: console.c:27
emutools_hid.h
mouse_reset
void mouse_reset(void)
Definition: input_devices.c:378
emu_mouse_motion
void emu_mouse_motion(int dx, int dy)
Definition: input_devices.c:343