AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
ioHandler.h
1#pragma once
2
3namespace Aire {
4 class Window;
5
7 class IOHandler {
8 public:
10 IOHandler();
11
15 void handlePolledState();
16
23 void handleKeyCb(int key, int scancode, int action, int mods);
24
29 void handleScrollCb(double xOffset, double yOffset);
30
35 void handleCursorPosCb(double xPos, double yPos);
36
37 Window* window;
38
39 bool debug = false;
40 bool pause = false;
41 };
42}
43
A class that handles I/O events.
Definition ioHandler.h:7
void handleScrollCb(double xOffset, double yOffset)
Definition ioHandler.cpp:48
void handleCursorPosCb(double xPos, double yPos)
Definition ioHandler.cpp:54
void handleKeyCb(int key, int scancode, int action, int mods)
Definition ioHandler.cpp:25
void handlePolledState()
Definition ioHandler.cpp:10
IOHandler()
Construct a default IO handler.
Definition ioHandler.cpp:6
Definition window.h:13