Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Input.cpp File Reference
#include "Headers/Input.h"
#include <SDL2/SDL_keycode.h>

Go to the source code of this file.

Classes

struct  Divide::Input::KeyMapEntry
 

Namespaces

namespace  Divide
 Handle console commands that start with a forward slash.
 
namespace  Divide::Input
 

Functions

SDL_Keycode Divide::Input::SDLKeyCodeFromKey (KeyCode code) noexcept
 
KeyCode Divide::Input::KeyCodeFromSDLKey (SDL_Keycode code) noexcept
 
KeyCode Divide::Input::KeyCodeByName (const char *keyName) noexcept
 
InputState Divide::Input::GetKeyState (U8 deviceIndex, KeyCode key) noexcept
 
InputState Divide::Input::GetMouseButtonState (U8 deviceIndex, MouseButton button) noexcept
 
InputState Divide::Input::GetJoystickElementState (Joystick deviceIndex, JoystickElement element) noexcept
 

Variables

constexpr KeyMapEntry Divide::Input::KeyCodeSDLMap []