 |
Gorgon Game Engine
|
Go to the documentation of this file.
6 namespace Gorgon {
namespace Input {
67 constexpr
Key F1 = 0b101000000 + 1;
68 constexpr
Key F2 = 0b101000000 + 2;
69 constexpr
Key F3 = 0b101000000 + 3;
70 constexpr
Key F4 = 0b101000000 + 4;
71 constexpr
Key F5 = 0b101000000 + 5;
72 constexpr
Key F6 = 0b101000000 + 6;
73 constexpr
Key F7 = 0b101000000 + 7;
74 constexpr
Key F8 = 0b101000000 + 8;
75 constexpr
Key F9 = 0b101000000 + 9;
76 constexpr
Key F10 = 0b101000000 + 10;
77 constexpr
Key F11 = 0b101000000 + 11;
78 constexpr
Key F12 = 0b101000000 + 12;
280 explicit operator bool()
const {
This class represents a window.
Definition: Window.h:31
unsigned short ucs
Definition: X11Keysym.h:42
void handleinputevent(XEvent event, Window &wind)
Definition: Input.cpp:463
std::map< Input::Key, ConsumableEvent< Window, Input::Key, bool >::Token > handlers
Definition: X11.h:45
ConsumableEvent< Window, Input::Keyboard::Char > CharacterEvent
Called when a character is received.
Definition: Window.h:397
Gorgon::internal::windowdata * getdata(const Window &w)
Definition: Window.cpp:15
std::set< KeySym > pressed
Definition: X11.h:46
void mouse_up(Geometry::Point location, Input::Mouse::Button button)
These functions are used internally.
Definition: Window.cpp:120
void mouse_event(Input::Mouse::EventType event, Geometry::Point location, Input::Mouse::Button button, float amount)
These functions are used internally.
Definition: Window.cpp:158
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
uint32_t Char
Definition: Types.h:46
void assertkeys(Window &wind, Gorgon::internal::windowdata *data)
Definition: Input.cpp:267
std::string osgetkeyname(Input::Keyboard::Key key)
Definition: Input.cpp:48
void handlekeypressevent(XEvent event, Window &wind)
Definition: Input.cpp:320
void handlekeyreleaseevent(XEvent event, Window &wind)
Definition: Input.cpp:372
void handlebuttonreleaseevent(XEvent event, Window &wind)
Definition: Input.cpp:457
Definition: X11Keysym.h:40
void mouse_down(Geometry::Point location, Input::Mouse::Button button)
These functions are used internally.
Definition: Window.cpp:99
void handlebuttonpressevent(XEvent event, Window &wind)
Definition: Input.cpp:445
Input::Mouse::Button buttonfromx11(unsigned btn)
Definition: Input.cpp:74
constexpr codepair keysymtab[]
Definition: X11Keysym.h:45
Input::Keyboard::Key mapx11key(KeySym key, unsigned int keycode)
Definition: Input.cpp:100
bool AppendUnicode(std::string &s, Char c)
Appends a unicode code point to the string.
Definition: String.h:609
ConsumableEvent< Window, Input::Key, float > KeyEvent
Called when a key is pressed or released.
Definition: Window.h:392