|
raylib_impl 0.1.0
Vendor raylib 5.5 : IGraphic2Module / IGraphic3Module / IAudioModule
|
raylib keyboard, read straight off the native state queries. More...
#include <RayKeyboard.hpp>


Public Member Functions | |
| RayKeyboard ()=default | |
| ~RayKeyboard () override=default | |
| std::vector< Keys > | whichKeyDown () const override |
| bool | isKeyPressed (Keys key) const override |
| bool | isKeyDown (Keys key) const override |
| bool | isKeyReleased (Keys key) const override |
| bool | isKeyUp (Keys key) const override |
raylib keyboard, read straight off the native state queries.
IsKeyPressed() compares currentKeyState and previousKeyState, two array lookups : nothing is consumed, so any number of readers get the same answer anywhere in the frame. raylib swaps the two arrays inside EndDrawing(), which is why the frame boundary is endDraw().
This is the behaviour the contract asks for, and the one the other vendors are aligned on.
|
default |
|
overridedefault |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |