Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
input.h
Go to the documentation of this file.
1 /* Xep128: Minimalistic Enterprise-128 emulator with focus on "exotic" hardware
2  Copyright (C)2015,2016 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
3  http://xep128.lgb.hu/
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 __XEP128_INPUT_H_INCLUDED
20 #define __XEP128_INPUT_H_INCLUDED
21 
22 #include <SDL_keyboard.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 
33 
34 extern int mouse_mode_description ( int cfg, char *buffer );
35 extern void mouse_reset_button ( void );
36 extern void emu_mouse_button ( Uint8 sdl_button, int press );
37 extern void emu_mouse_motion ( int dx, int dy );
38 extern void emu_mouse_wheel ( int x, int y, int flipped );
39 extern void mouse_reset ( void );
40 extern Uint8 read_control_port_bits ( void );
41 extern void mouse_check_data_shift ( Uint8 val );
42 extern int mouse_setup ( int cfg );
43 extern int emu_kbd ( SDL_Keysym sym, int press );
44 
45 #endif
mouse_grab
int mouse_grab
Definition: input_devices.c:28
mouse_setup
int mouse_setup(int cfg)
Definition: input_devices.c:500
emu_mouse_wheel
void emu_mouse_wheel(int x, int y, int flipped)
Definition: input_devices.c:360
show_keys
int show_keys
Definition: input.h:32
mouse_reset_button
void mouse_reset_button(void)
Definition: input_devices.c:255
Uint8
uint8_t Uint8
Definition: fat32.c:51
mouse_mode_description
int mouse_mode_description(int cfg, char *buffer)
Definition: input_devices.c:231
mouse_mode
int mouse_mode
Definition: input.h:32
x
int x
Definition: console.c:27
mouse_check_data_shift
void mouse_check_data_shift(Uint8 val)
Definition: input_devices.c:463
emu_mouse_motion
void emu_mouse_motion(int dx, int dy)
Definition: input_devices.c:343
read_control_port_bits
Uint8 read_control_port_bits(void)
Definition: input_devices.c:416
y
int y
Definition: console.c:27
mouse_reset
void mouse_reset(void)
Definition: input_devices.c:378
emu_kbd
int emu_kbd(SDL_Keysym sym, int press)
Definition: input.c:420
emu_mouse_button
void emu_mouse_button(Uint8 sdl_button, int press)
Definition: input_devices.c:274