Make TTY and Raylib identical
This commit is contained in:
@@ -5,20 +5,20 @@
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "term.h"
|
||||
#include "platformtty.h"
|
||||
|
||||
bool_t inputDown(const uint8_t action) {
|
||||
return (TERM.inputCurrent & action) != 0;
|
||||
return (PLATFORM_TTY.inputCurrent & action) != 0;
|
||||
}
|
||||
|
||||
bool_t inputUp(const uint8_t action) {
|
||||
return (TERM.inputCurrent & action) == 0;
|
||||
return (PLATFORM_TTY.inputCurrent & action) == 0;
|
||||
}
|
||||
|
||||
bool_t inputWasDown(const uint8_t action) {
|
||||
return (TERM.inputPrevious & action) != 0;
|
||||
return (PLATFORM_TTY.inputPrevious & action) != 0;
|
||||
}
|
||||
|
||||
bool_t inputWasUp(const uint8_t action) {
|
||||
return (TERM.inputPrevious & action) == 0;
|
||||
return (PLATFORM_TTY.inputPrevious & action) == 0;
|
||||
}
|
||||
Reference in New Issue
Block a user