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

Go to the source code of this file.

Macros

#define VIRTUAL_SHIFT_POS   0x64
 
#define LSHIFT_KEY_POS   0x17
 
#define RSHIFT_KEY_POS   0x64
 
#define CBM_KEY_POS   0x75
 
#define CTRL_KEY_POS   0x72
 
#define IS_KEY_PRESSED(pos)   (!(kbd_matrix[(pos) >> 4] & (1 << ((pos) & 7))))
 
#define RESTORE_KEY_POS   0x80
 
#define CAPSLOCK_KEY_POS   0x81
 
#define IS_RESTORE_PRESSED()   IS_KEY_PRESSED(RESTORE_KEY_POS)
 

Functions

Uint8 c64_get_joy_state (void)
 
void c64_toggle_joy_emu (void)
 

Variables

const struct KeyMappingDefault c64_key_map []
 
int joystick_emu
 

Macro Definition Documentation

◆ CAPSLOCK_KEY_POS

#define CAPSLOCK_KEY_POS   0x81

Definition at line 32 of file c64_kbd_mapping.h.

◆ CBM_KEY_POS

#define CBM_KEY_POS   0x75

Definition at line 26 of file c64_kbd_mapping.h.

◆ CTRL_KEY_POS

#define CTRL_KEY_POS   0x72

Definition at line 27 of file c64_kbd_mapping.h.

◆ IS_KEY_PRESSED

#define IS_KEY_PRESSED (   pos)    (!(kbd_matrix[(pos) >> 4] & (1 << ((pos) & 7))))

Definition at line 29 of file c64_kbd_mapping.h.

◆ IS_RESTORE_PRESSED

#define IS_RESTORE_PRESSED ( )    IS_KEY_PRESSED(RESTORE_KEY_POS)

Definition at line 33 of file c64_kbd_mapping.h.

◆ LSHIFT_KEY_POS

#define LSHIFT_KEY_POS   0x17

Definition at line 24 of file c64_kbd_mapping.h.

◆ RESTORE_KEY_POS

#define RESTORE_KEY_POS   0x80

Definition at line 31 of file c64_kbd_mapping.h.

◆ RSHIFT_KEY_POS

#define RSHIFT_KEY_POS   0x64

Definition at line 25 of file c64_kbd_mapping.h.

◆ VIRTUAL_SHIFT_POS

#define VIRTUAL_SHIFT_POS   0x64

Definition at line 22 of file c64_kbd_mapping.h.

Function Documentation

◆ c64_get_joy_state()

Uint8 c64_get_joy_state ( void  )

Definition at line 151 of file c64_kbd_mapping.c.

Here is the call graph for this function:

◆ c64_toggle_joy_emu()

void c64_toggle_joy_emu ( void  )

Definition at line 140 of file c64_kbd_mapping.c.

Here is the caller graph for this function:

Variable Documentation

◆ c64_key_map

const struct KeyMappingDefault c64_key_map[]

Definition at line 33 of file c64_kbd_mapping.c.

◆ joystick_emu

int joystick_emu

Definition at line 137 of file c64_kbd_mapping.c.