PatchworkOS
Loading...
Searching...
No Matches
PS/2 Scanmap

PS/2 Scanmap. More...

Macros

#define PS2_SCAN_CODE_SET   2
 PS/2 scan code set to use.
 

Typedefs

typedef uint8_t ps2_scancode_t
 PS/2 scancode.
 

Functions

keycode_t ps2_scancode_to_keycode (ps2_scancode_t scancode, bool isExtended)
 Convert a PS/2 scancode to a generic keycode.
 

Detailed Description

PS/2 Scanmap.

Macro Definition Documentation

◆ PS2_SCAN_CODE_SET

#define PS2_SCAN_CODE_SET   2

PS/2 scan code set to use.

Definition at line 18 of file ps2_scanmap.h.

Typedef Documentation

◆ ps2_scancode_t

PS/2 scancode.

Definition at line 23 of file ps2_scanmap.h.

Function Documentation

◆ ps2_scancode_to_keycode()

keycode_t ps2_scancode_to_keycode ( ps2_scancode_t  scancode,
bool  isExtended 
)

Convert a PS/2 scancode to a generic keycode.

Parameters
scancodePS/2 scancode structure
isExtendedWhether to use the extended scanmap
Returns
Corresponding generic keycode

Definition at line 118 of file ps2_scanmap.c.

References KBD_NONE, set2ExtendedMap, and set2Map.

Referenced by ps2_kbd_irq().