Midnight Blue Game and Engine
Classes | Enumerations
MB2D.IO Namespace Reference

Classes

class  Command
 Executes an action associated with a specific key More...
 
class  ConsoleCommand
 Shows or hides the debug console More...
 
class  InputMap
 Maps commands to keys and trigger types More...
 
class  IOUtil
 Utility methods for working with the keyboard and mouse
 
class  MoveBackward
 Moves an entity backward. Only runs on entities with a physics component More...
 
class  MoveDown
 Moves an entity down More...
 
class  MoveForward
 Moves an entity forward. Only runs on entities with a physics component More...
 
class  MoveLeft
 Moves an entity left. More...
 
class  MoveRight
 Moves an entity right More...
 
class  MoveUp
 Moves a player controller up More...
 
class  RotateLeft
 Rotates an entity left More...
 
class  RotateRight
 Rotates an entity right More...
 
class  TextInputHandler
 

Enumerations

enum  CommandType { CommandType.Hold, CommandType.Trigger }
 Represents either a trigger or hold command type More...
 

Enumeration Type Documentation

§ CommandType

enum MB2D.IO.CommandType
strong

Represents either a trigger or hold command type

Enumerator
Hold 

Execute command every frame its associated input key/button is detected

Trigger 

Execute command only on the first frame its associated input key/button is detected and don't execute again until it's released and pressed again