File: mouse.hpp

package info (click to toggle)
ares 126-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,600 kB
  • sloc: cpp: 356,508; ansic: 20,394; makefile: 16; sh: 2
file content (12 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#if defined(Hiro_Mouse)
struct Mouse {
  enum class Button : u32 { Left, Middle, Right };
  enum class Click : u32 { Single, Double };

  Mouse() = delete;

  static auto position() -> Position;
  static auto pressed(Button) -> bool;
  static auto released(Button) -> bool;
};
#endif