Night Byte
Public Types | Public Attributes | List of all members
Input Struct Reference

#include <Input.hpp>

Public Types

enum  device {
  NONE = -1, KEYBOARD = 0, MOUSE = 1, CONTROLLER = 2,
  OTHER = 3
}
 

Public Attributes

enum Input::device device
 
float x
 
float y
 
InputAction keyMap
 

Detailed Description

A structure to represent an input from the Engine.

Member Enumeration Documentation

◆ device

Device the input was received from

Enumerator
NONE 

Device -1: No Input

KEYBOARD 

Device 0: Keyboard

MOUSE 

Device 1: Mouse

CONTROLLER 

Device 2: Controller

OTHER 

Device 3: Other (e.g. the console)

Member Data Documentation

◆ keyMap

InputAction Input::keyMap

InputAction struct containing code and action

◆ x

float Input::x

X coordinate within the window

◆ y

float Input::y

Y coordinate within the window


The documentation for this struct was generated from the following file: