aboutsummaryrefslogtreecommitdiffstats
path: root/src/keysym/system.h
blob: f0174f5ba18e0fcb88aa4c8b3e4f82b88f42473a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "keysym.h"

#include <stdint.h>

/* Generic Desktop Page (0x01) */
#define KS_PWR  KS_SYSTEM_POWER
#define KS_SLEP KS_SYSTEM_SLEEP
#define KS_WAKE KS_SYSTEM_WAKE

enum keysym_system {
	KS_SYSTEM_POWER = KEYSYM_SYSTEM_MASK,
	KS_SYSTEM_SLEEP,
	KS_SYSTEM_WAKE,
};

uint16_t keysym_to_system(uint32_t keysym);