1 #if !defined(_BTK_LOCALS_HPP_) 2 #define _BTK_LOCALS_HPP_ 3 #include <SDL2/SDL_keycode.h> 4 #include <SDL2/SDL_scancode.h> 5 #include <SDL2/SDL_mouse.h> 8 typedef SDL_Keycode Keycode;
9 typedef SDL_Scancode Scancode;
11 enum class Keymode:Uint16{
16 inline Keymode operator |(Keymode a,Keymode b){
17 return static_cast<Keymode
> 18 (
static_cast<Uint16
>(a) | static_cast<Uint16>(b)
21 inline Keymode operator &(Keymode a,Keymode b){
22 return static_cast<Keymode
> 23 (
static_cast<Uint16
>(a) & static_cast<Uint16>(b)
26 inline bool operator ==(Keymode a,Uint16 b){
27 return Uint16(a) == b;
29 inline bool operator !=(Keymode a,Uint16 b){
30 return Uint16(a) != b;
34 #endif // _BTK_LOCALS_HPP_ This header include many useful containers.
Definition: async.hpp:7