keyboard.hpp 305 B

12345678910111213141516171819
  1. #if defined(Hiro_Keyboard)
  2. namespace hiro {
  3. struct pKeyboard {
  4. static auto poll() -> vector<bool>;
  5. static auto pressed(unsigned code) -> bool;
  6. static auto initialize() -> void;
  7. static auto _translate(unsigned code, unsigned flags) -> signed;
  8. static vector<uint16_t> keycodes;
  9. };
  10. }
  11. #endif