19 lines
388 B
C++
19 lines
388 B
C++
|
|
/*
|
||
|
|
* Key codes for multiple platforms
|
||
|
|
*
|
||
|
|
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
|
||
|
|
*
|
||
|
|
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#if defined(_WIN32)
|
||
|
|
#elif defined(__ANDROID__)
|
||
|
|
#elif defined(__linux__)
|
||
|
|
#define KEY_ESCAPE 0x9
|
||
|
|
#define KEY_W 0x19
|
||
|
|
#define KEY_A 0x26
|
||
|
|
#define KEY_S 0x27
|
||
|
|
#define KEY_D 0x28
|
||
|
|
#endif
|