CitroFlex3ds 0.1
CitroFlex3DS is a lightweight game engine designed specifically for Nintendo 3DS homebrew development. It provides a simple framework for creating games and applications.
 
Loading...
Searching...
No Matches
Input::InputManager Class Reference

Manages all input handling for the 3DS. More...

#include <Input.hpp>

Public Member Functions

 InputManager ()
 Constructor that initializes all button states.
 
void Update ()
 Updates the state of all inputs.
 
ButtonState GetButtonState (Button button) const
 Gets the current state of a specific button.
 
Vector2D GetCirclePadPosition () const
 Gets the current position of the Circle Pad.
 
Vector2D GetCStickPosition () const
 Gets the current position of the C-Stick.
 
TouchPosition GetTouchPosition () const
 Gets the current touch screen state.
 
const InputState & GetCurrentState () const
 Gets the complete current input state.
 

Detailed Description

Manages all input handling for the 3DS.

Member Function Documentation

◆ GetButtonState()

ButtonState Input::InputManager::GetButtonState ( Button button) const

Gets the current state of a specific button.

Parameters
buttonThe button to check
Returns
The current state of the button

◆ GetCirclePadPosition()

Vector2D Input::InputManager::GetCirclePadPosition ( ) const

Gets the current position of the Circle Pad.

Returns
A Vector2D containing the normalized (-1 to 1) position

◆ GetCStickPosition()

Vector2D Input::InputManager::GetCStickPosition ( ) const

Gets the current position of the C-Stick.

Returns
A Vector2D containing the normalized (-1 to 1) position

◆ GetCurrentState()

const InputState & Input::InputManager::GetCurrentState ( ) const

Gets the complete current input state.

Returns
A reference to the current InputState

◆ GetTouchPosition()

TouchPosition Input::InputManager::GetTouchPosition ( ) const

Gets the current touch screen state.

Returns
The current touch position and state

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