AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Aire::IOHandler Class Reference

A class that handles I/O events. More...

#include <ioHandler.h>

Collaboration diagram for Aire::IOHandler:
Collaboration graph
[legend]

Public Member Functions

 IOHandler ()
 Construct a default IO handler.
 
void handlePolledState ()
 
void handleKeyCb (int key, int scancode, int action, int mods)
 
void handleScrollCb (double xOffset, double yOffset)
 
void handleCursorPosCb (double xPos, double yPos)
 

Public Attributes

Windowwindow
 
bool debug = false
 
bool pause = false
 

Detailed Description

A class that handles I/O events.

Member Function Documentation

◆ handleCursorPosCb()

void IOHandler::handleCursorPosCb ( double xPos,
double yPos )

Handle cursor movement event. It is responsibility of the window system to call this at the right time. GLFW-compliant interface.

Parameters
xPosPosition of the cursor in screen coordinates along the x axis
yPosPosition of the cursor in screen coordinates along the y axis

◆ handleKeyCb()

void IOHandler::handleKeyCb ( int key,
int scancode,
int action,
int mods )

Handle key event. It is responsibility of the window system to call this at the right time. GLFW-compliant interface.

Parameters
keyKey that triggered the event. Key code is GLFW-specific.
scancodeSystem-specific scancode of the key.
actionEither GLFW_PRESS, GLFW_RELEASE, or GLFW_REPEAT.
modsBit field describing which modifier keys are held down.
Here is the call graph for this function:

◆ handlePolledState()

void IOHandler::handlePolledState ( )

Takes actions based on the polled key states. It is responsibility of the window system to call this after polling.

Here is the caller graph for this function:

◆ handleScrollCb()

void IOHandler::handleScrollCb ( double xOffset,
double yOffset )

Handle scroll event. It is responsibility of the window system to call this at the right time. GLFW-compliant interface.

Parameters
xOffsetScroll offset along the x axis
yOffsetScroll offset along the y axis

The documentation for this class was generated from the following files: