PatchworkOS
Loading...
Searching...
No Matches
ps2_scanmap.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
stdbool.h
>
4
#include <
stdint.h
>
5
#include <
sys/kbd.h
>
6
18
#define PS2_SCAN_CODE_SET 2
19
23
typedef
uint8_t
ps2_scancode_t
;
24
32
keycode_t
ps2_scancode_to_keycode
(
ps2_scancode_t
scancode,
bool
isExtended);
33
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.
Definition
ps2_scanmap.c:118
ps2_scancode_t
uint8_t ps2_scancode_t
PS/2 scancode.
Definition
ps2_scanmap.h:23
keycode_t
keycode_t
Keyboard keycode type.
Definition
kbd.h:27
kbd.h
stdbool.h
stdint.h
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:11
include
kernel
drivers
ps2
ps2_scanmap.h
Generated by
1.9.8