C++ Game Framework  2013-06-04
CGF is a DirectX 11 game framework, built in C++ and DirectX 11. This is used to contain many to the DirectX functionality and wrap them into a framework to make game development easier.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CGF::Input Class Reference

#include <Input.h>

Public Member Functions

bool IsKeyDown (InputKey key)
 
bool IsKeyUp (InputKey key)
 
bool IsKeyPressed (InputKey key)
 
bool IsKeyReleased (InputKey key)
 
bool IsMouseButtonDown (MouseButton button)
 
bool IsMouseButtonUp (MouseButton button)
 
bool IsMouseButtonPressed (MouseButton button)
 
bool IsMouseButtonReleased (MouseButton button)
 
Vector2f GetMousePosition ()
 

Friends

class GameEngine
 

Member Function Documentation

Vector2f Input::GetMousePosition ( )

Get the current position of the mouse

bool Input::IsKeyDown ( InputKey  key)

Check if a specific key is pressed down

Key to check

bool Input::IsKeyPressed ( InputKey  key)

Check if a specific key is pressed down. but was unpressed last update

Key to check

bool Input::IsKeyReleased ( InputKey  key)

Check if a specific key is unpressed, but was pressed last update

Key to check

bool Input::IsKeyUp ( InputKey  key)

Check if a specific key is unpressed

Key to check

bool Input::IsMouseButtonDown ( MouseButton  button)

Check if a mouse button is pressed down

Button to check

bool Input::IsMouseButtonPressed ( MouseButton  button)

Check if a mouse button is pressed down. but was unpressed last update

Button to check

bool Input::IsMouseButtonReleased ( MouseButton  button)

Check if a mouse button is unpressed, but was pressed last update

Button to check

bool Input::IsMouseButtonUp ( MouseButton  button)

Check if a mouse button is unpressed

Button to check

Friends And Related Function Documentation

friend class GameEngine
friend

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