2D Engine v0.1.0
Loading...
Searching...
No Matches
InputSystem Class Reference

Input handling system. More...

#include <InputSystem.hpp>

Collaboration diagram for InputSystem:
Collaboration graph

Public Member Functions

 InputSystem (Scene *scene, SDLLayer *sdlLayer, Board *board, ImGuiLayer *imguiLayer)
 Initialize the Input System based on current scene.
 
bool Input (b2World *physicsWorld) const
 Handle user input events.
 

Detailed Description

Input handling system.

Constructor & Destructor Documentation

◆ InputSystem()

InputSystem::InputSystem ( Scene * scene,
SDLLayer * sdlLayer,
Board * board,
ImGuiLayer * imguiLayer )
inline

Initialize the Input System based on current scene.

Parameters
sceneCurrent scene
sdlLayerSDL Layer
boardGame board
imguiLayerImGui Layer

Member Function Documentation

◆ Input()

bool InputSystem::Input ( b2World * physicsWorld) const

Handle user input events.

Parameters
deltaTimeTime since last frame
physicsWorldBox2D physics world
Returns
true Application should quit
false Application should continue

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