Add LibTemple/Input functions

This commit is contained in:
Alec Murphy 2025-06-10 13:34:00 -04:00
parent e6cff10e60
commit cc4f8dfa51
5 changed files with 51 additions and 2 deletions

12
System/LibTemple/Input.HC Normal file
View file

@ -0,0 +1,12 @@
Bool @input_key_down(I64 sc)
{
return Bt(kbd.down_bitmap, sc);
}
U0 input_key_down()
{
PUSH_SYSV_REGS
GET_SYSV_ARGS
@input_key_down(p0);
POP_SYSV_REGS
}

View file

@ -5,6 +5,7 @@
#include "FFI/ELF64";
// LibTemple support files
#include "LibTemple/Input";
#include "LibTemple/OS";
#include "MuJS";