aboutsummaryrefslogtreecommitdiff
path: root/src/common/include/proto/keyboard.h
blob: 044946da766c02617354f7ab76deeae86aebc761 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <stdint.h>
#include <stddef.h>

typedef struct {
	uint16_t scancode;
	uint16_t type;
} kbd_event_t;

#define KBD_EVENT_KEYRELEASE 0
#define KBD_EVENT_KEYPRESS 1

#define IOCTL_KBD_SET_LEDS 10

#define KBD_LED_SCROLLLOCK 	1
#define KBD_LED_NUMLOCK  	1
#define KBD_LED_CAPSLOCK 	4

/* vim: set ts=4 sw=4 tw=0 noet :*/