Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions
input_devices.c File Reference
#include "xemu/emutools.h"
#include "input_devices.h"
#include "xemu/emutools_hid.h"
#include "xemu/c64_kbd_mapping.h"
#include "mega65.h"
#include "io_mapper.h"
#include "xemu/cpu65.h"
#include "hypervisor.h"
#include "ui.h"
#include "matrix_mode.h"
Include dependency graph for input_devices.c:

Go to the source code of this file.

Macros

#define DEBUGKBD(...)   DEBUG(__VA_ARGS__)
 
#define DEBUGKBDHWA(...)   DEBUG(__VA_ARGS__)
 
#define DEBUGKBDHWACOM(...)
 
#define MAT2ASC_TAB_SIZE   72
 
#define MODKEY_LSHIFT   0x01
 
#define MODKEY_RSHIFT   0x02
 
#define MODKEY_CTRL   0x04
 
#define MODKEY_CBM   0x08
 
#define MODKEY_ALT   0x10
 
#define MODKEY_SCRL   0x20
 
#define HWA_SINGLE_ITEM
 
#define CHR_EQU(i)   ((i >= 32 && i < 127) ? (char)i : '?')
 

Functions

void hwa_kbd_disable_selector (int state)
 
void hwa_kbd_fake_key (Uint8 k)
 
Uint8 hwa_kbd_get_last (void)
 
Uint8 hwa_kbd_get_modifiers (void)
 
void hwa_kbd_move_next (void)
 
Uint8 kbd_directscan_query (Uint8 row)
 
void clear_emu_events (void)
 
void input_toggle_joy_emu (void)
 
void virtkey (Uint8 rno, Uint8 scancode)
 
Uint8 cia1_in_b (void)
 
Uint8 cia1_in_a (void)
 
void kbd_trigger_restore_trap (void)
 
int emu_callback_key (int pos, SDL_Scancode key, int pressed, int handled)
 
Uint8 get_mouse_x_via_sid (void)
 
Uint8 get_mouse_y_via_sid (void)
 
void input_init (void)
 

Macro Definition Documentation

◆ CHR_EQU

#define CHR_EQU (   i)    ((i >= 32 && i < 127) ? (char)i : '?')

Definition at line 132 of file input_devices.c.

◆ DEBUGKBD

#define DEBUGKBD (   ...)    DEBUG(__VA_ARGS__)

Definition at line 32 of file input_devices.c.

◆ DEBUGKBDHWA

#define DEBUGKBDHWA (   ...)    DEBUG(__VA_ARGS__)

Definition at line 33 of file input_devices.c.

◆ DEBUGKBDHWACOM

#define DEBUGKBDHWACOM (   ...)

Definition at line 34 of file input_devices.c.

◆ HWA_SINGLE_ITEM

#define HWA_SINGLE_ITEM

Definition at line 73 of file input_devices.c.

◆ MAT2ASC_TAB_SIZE

#define MAT2ASC_TAB_SIZE   72

Definition at line 45 of file input_devices.c.

◆ MODKEY_ALT

#define MODKEY_ALT   0x10

Definition at line 57 of file input_devices.c.

◆ MODKEY_CBM

#define MODKEY_CBM   0x08

Definition at line 56 of file input_devices.c.

◆ MODKEY_CTRL

#define MODKEY_CTRL   0x04

Definition at line 55 of file input_devices.c.

◆ MODKEY_LSHIFT

#define MODKEY_LSHIFT   0x01

Definition at line 53 of file input_devices.c.

◆ MODKEY_RSHIFT

#define MODKEY_RSHIFT   0x02

Definition at line 54 of file input_devices.c.

◆ MODKEY_SCRL

#define MODKEY_SCRL   0x20

Definition at line 58 of file input_devices.c.

Function Documentation

◆ cia1_in_a()

Uint8 cia1_in_a ( void  )

Definition at line 250 of file input_devices.c.

◆ cia1_in_b()

Uint8 cia1_in_b ( void  )

Definition at line 235 of file input_devices.c.

◆ clear_emu_events()

void clear_emu_events ( void  )

Definition at line 192 of file input_devices.c.

Here is the call graph for this function:

◆ emu_callback_key()

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

Definition at line 320 of file input_devices.c.

◆ get_mouse_x_via_sid()

Uint8 get_mouse_x_via_sid ( void  )

Definition at line 384 of file input_devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_mouse_y_via_sid()

Uint8 get_mouse_y_via_sid ( void  )

Definition at line 397 of file input_devices.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hwa_kbd_disable_selector()

void hwa_kbd_disable_selector ( int  state)

Definition at line 86 of file input_devices.c.

Here is the caller graph for this function:

◆ hwa_kbd_fake_key()

void hwa_kbd_fake_key ( Uint8  k)

Definition at line 96 of file input_devices.c.

◆ hwa_kbd_get_last()

Uint8 hwa_kbd_get_last ( void  )

Definition at line 104 of file input_devices.c.

Here is the caller graph for this function:

◆ hwa_kbd_get_modifiers()

Uint8 hwa_kbd_get_modifiers ( void  )

Definition at line 116 of file input_devices.c.

Here is the caller graph for this function:

◆ hwa_kbd_move_next()

void hwa_kbd_move_next ( void  )

Definition at line 125 of file input_devices.c.

Here is the caller graph for this function:

◆ input_init()

void input_init ( void  )

Definition at line 410 of file input_devices.c.

Here is the call graph for this function:

◆ input_toggle_joy_emu()

void input_toggle_joy_emu ( void  )

Definition at line 209 of file input_devices.c.

Here is the call graph for this function:

◆ kbd_directscan_query()

Uint8 kbd_directscan_query ( Uint8  row)

Definition at line 181 of file input_devices.c.

Here is the caller graph for this function:

◆ kbd_trigger_restore_trap()

void kbd_trigger_restore_trap ( void  )

Definition at line 260 of file input_devices.c.

◆ virtkey()

void virtkey ( Uint8  rno,
Uint8  scancode 
)

Definition at line 216 of file input_devices.c.

Here is the caller graph for this function:

Variable Documentation

◆ active_selector

int active_selector

Definition at line 79 of file input_devices.c.

◆ last

Uint8 last

Definition at line 78 of file input_devices.c.

◆ modifiers

Uint8 modifiers

Definition at line 76 of file input_devices.c.

◆ next

Uint8 next

Definition at line 77 of file input_devices.c.