mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 17:19:27 +00:00
Fixed wrong returnvalue of GetKey- and GetChar-pressed functions
This commit is contained in:
@@ -46,19 +46,19 @@ namespace Keyboard {
|
||||
/**
|
||||
* Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty
|
||||
*/
|
||||
[[maybe_unused]] RLCPPAPI inline bool GetKeyPressed() {
|
||||
|
||||
[[maybe_unused]] RLCPPAPI inline int GetKeyPressed() {
|
||||
return ::GetKeyPressed();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty
|
||||
*/
|
||||
[[maybe_unused]] RLCPPAPI inline bool GetCharPressed() {
|
||||
[[maybe_unused]] RLCPPAPI inline int GetCharPressed() {
|
||||
return ::GetCharPressed();
|
||||
}
|
||||
} // namespace Keyboard
|
||||
} // namespace raylib
|
||||
|
||||
namespace RKeyboard = raylib::Keyboard;
|
||||
|
||||
#endif // RAYLIB_CPP_INCLUDE_KEYBOARD_HPP_
|
||||
|
||||
Reference in New Issue
Block a user