keyboard.hpp 310 B

123456789101112131415161718
  1. #if defined(Hiro_Keyboard)
  2. namespace hiro {
  3. struct pKeyboard {
  4. static auto poll() -> vector<bool>;
  5. static auto pressed(uint code) -> bool;
  6. static auto _pressed(const char* state, uint16_t code) -> bool;
  7. static auto _translate(uint code) -> signed;
  8. static auto initialize() -> void;
  9. };
  10. }
  11. #endif