Skip to content

Commit 59ab49a

Browse files
authored
Merge pull request #328 from kyomawolf/master
Fixed wrong returnvalue of GetKey- and GetChar-pressed functions
2 parents 1ef7ddb + 1883df0 commit 59ab49a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/Keyboard.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ namespace Keyboard {
4646
/**
4747
* Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty
4848
*/
49-
[[maybe_unused]] RLCPPAPI inline bool GetKeyPressed() {
49+
50+
[[maybe_unused]] RLCPPAPI inline int GetKeyPressed() {
5051
return ::GetKeyPressed();
5152
}
5253

5354
/**
5455
* Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty
5556
*/
56-
[[maybe_unused]] RLCPPAPI inline bool GetCharPressed() {
57+
[[maybe_unused]] RLCPPAPI inline int GetCharPressed() {
5758
return ::GetCharPressed();
5859
}
5960
} // namespace Keyboard
6061
} // namespace raylib
61-
6262
namespace RKeyboard = raylib::Keyboard;
6363

6464
#endif // RAYLIB_CPP_INCLUDE_KEYBOARD_HPP_

0 commit comments

Comments
 (0)