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 Namespace Reference

Handles input management for the 3DS console. More...

Classes

class  InputManager
 Manages all input handling for the 3DS. More...
 
struct  InputState
 Contains the complete state of all inputs. More...
 
struct  TouchPosition
 Represents the touch screen input state. More...
 
struct  Vector2D
 Represents a 2D vector for stick positions. More...
 

Enumerations

enum class  Button {
  A , B , X , Y ,
  LEFT , RIGHT , UP , DOWN ,
  L , R , ZL , ZR ,
  START , SELECT , CSTICK_LEFT , CSTICK_RIGHT ,
  CSTICK_UP , CSTICK_DOWN , CPAD_LEFT , CPAD_RIGHT ,
  CPAD_UP , CPAD_DOWN
}
 Enumeration of all available buttons.
 
enum class  ButtonState { NONE , PRESSED , HELD , RELEASED }
 Represents the current state of a button. More...
 

Functions

u32 GetKeyForButton (Button button)
 Converts a Button enum to its corresponding 3DS key code.
 

Detailed Description

Handles input management for the 3DS console.

Enumeration Type Documentation

◆ ButtonState

enum class Input::ButtonState
strong

Represents the current state of a button.

Enumerator
NONE 

Button is not pressed.

PRESSED 

Button was just pressed this frame.

HELD 

Button is being held down.

RELEASED 

Button was just released this frame.

Function Documentation

◆ GetKeyForButton()

u32 Input::GetKeyForButton ( Button button)

Converts a Button enum to its corresponding 3DS key code.

Parameters
buttonThe button to convert
Returns
The corresponding KEY_ value