ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
A singleton for handling inputs
Static Public Member Functions | |
static bool | isKeyPressed (Key key) |
static bool | isKeyJustPressed (Key key) |
static bool | isKeyJustReleased (Key key) |
static vec2 | getKeyboardVector (Key negX, Key posX, Key negY, Key posY) |
static bool | isMouseButtonPressed (MouseButton mouseButton) |
static bool | isMouseButtonJustPressed (MouseButton mouseButton) |
static bool | isMouseButtonJustReleased (MouseButton mouseButton) |
static void | setMouseMode (MouseMode mode) |
static void | setMouseCursor (MouseCursor cursor) |
static void | resetMousePosition () |
static vec2 | getMousePosition () |
static void | setMousePosition (const vec2 &position) |
static uint32_t | getConnectedJoypads () |
static bool | isGamepad (uint32_t index) |
static string | getJoypadName (uint32_t index) |
static vec2 | getGamepadVector (uint32_t index, GamepadAxisJoystick axisJoystick) |
static bool | isGamepadButtonPressed (uint32_t index, GamepadButton gamepadButton) |
|
nodiscardstatic |
Returns the number of connected joypads, including gamepads
|
nodiscardstatic |
Gets an input vector for a gamepad joystick
index | index of the joypad in [0..getConnectedJoypads()] |
axisJoystick | axis |
|
nodiscardstatic |
Returns the joypad name
index | index of the joypad in [0..getConnectedJoypads()] |
|
static |
Returns the mouse position
|
nodiscardstatic |
Returns true if the joypad is a gamepad
index | index of the joypad in [0..getConnectedJoypads()] |
|
nodiscardstatic |
Returns true if you are pressing the gamepad button
index | index of the joypad in [0..getConnectedJoypads()] |
gamepadButton | gamepad button |
|
nodiscardstatic |
Returns true when the user has started pressing the key
|
nodiscardstatic |
Returns true when the user stops pressing the key
|
nodiscardstatic |
Returns true if you are pressing the key
|
nodiscardstatic |
Returns true when the user has started pressing the mouse button
|
nodiscardstatic |
Returns true when the user stops pressing the mouse button
|
nodiscardstatic |
Returns true if you are pressing the mouse button
|
static |
Sets the mouse position to the center of the window
|
static |
Sets the mouse cursor
|
static |
Sets the mouse visibility and capture mode
|
static |
Returns the mouse position