Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
input_devices.h
Go to the documentation of this file.
1 /* A work-in-progess MEGA65 (Commodore-65 clone origins) emulator
2  Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
3  Copyright (C)2016-2022 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_MEGA65_INPUT_DEVICES_H_INCLUDED
20 #define XEMU_MEGA65_INPUT_DEVICES_H_INCLUDED
21 
22 extern void clear_emu_events ( void );
23 extern Uint8 cia1_in_b ( void );
24 extern Uint8 cia1_in_a ( void );
25 extern void input_init ( void );
26 extern int emu_callback_key ( int pos, SDL_Scancode key, int pressed, int handled );
27 
28 extern void input_toggle_joy_emu ( void );
29 
30 extern Uint8 hwa_kbd_get_last ( void );
31 extern Uint8 hwa_kbd_get_modifiers ( void );
32 extern void hwa_kbd_move_next ( void );
33 extern void hwa_kbd_fake_key ( Uint8 k );
34 extern void hwa_kbd_disable_selector ( int state );
35 
36 extern void virtkey ( Uint8 rno, Uint8 scancode );
37 
38 extern Uint8 kbd_directscan_query ( Uint8 row );
39 
40 extern void kbd_trigger_restore_trap ( void );
41 
42 extern Uint8 get_mouse_x_via_sid ( void );
43 extern Uint8 get_mouse_y_via_sid ( void );
44 
45 #endif
get_mouse_x_via_sid
Uint8 get_mouse_x_via_sid(void)
Definition: input_devices.c:384
clear_emu_events
void clear_emu_events(void)
Definition: commodore_65.c:193
hwa_kbd_move_next
void hwa_kbd_move_next(void)
Definition: input_devices.c:125
hwa_kbd_get_modifiers
Uint8 hwa_kbd_get_modifiers(void)
Definition: input_devices.c:116
get_mouse_y_via_sid
Uint8 get_mouse_y_via_sid(void)
Definition: input_devices.c:397
cia1_in_b
Uint8 cia1_in_b(void)
Definition: input_devices.c:235
input_init
void input_init(void)
Definition: input_devices.c:410
Uint8
uint8_t Uint8
Definition: fat32.c:51
cia1_in_a
Uint8 cia1_in_a(void)
Definition: input_devices.c:250
kbd_trigger_restore_trap
void kbd_trigger_restore_trap(void)
Definition: input_devices.c:260
input_toggle_joy_emu
void input_toggle_joy_emu(void)
Definition: input_devices.c:209
hwa_kbd_fake_key
void hwa_kbd_fake_key(Uint8 k)
Definition: input_devices.c:96
emu_callback_key
int emu_callback_key(int pos, SDL_Scancode key, int pressed, int handled)
Definition: commodore_65.c:807
kbd_directscan_query
Uint8 kbd_directscan_query(Uint8 row)
Definition: input_devices.c:181
hwa_kbd_get_last
Uint8 hwa_kbd_get_last(void)
Definition: input_devices.c:104
hwa_kbd_disable_selector
void hwa_kbd_disable_selector(int state)
Definition: input_devices.c:86
virtkey
void virtkey(Uint8 rno, Uint8 scancode)
Definition: input_devices.c:216
KeyMappingDefault::pos
int pos
Definition: emutools_hid.h:26