You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
675 B

Bool @input_key_down(U8 scancode) { return Bt(kbd.down_bitmap, scancode); }
U0 _Z14input_key_downh() {
// input_key_down(unsigned char)
PUSH_SYSV_REGS
GET_SYSV_ARGS
debug_print("called: input_key_down(%c)\n", p0);
@input_key_down(p0);
POP_SYSV_REGS
}
I64 @input_mouse_x() { return ms.pos.x; }
U0 _Z13input_mouse_xv() {
// input_mouse_x()
PUSH_SYSV_REGS
GET_SYSV_ARGS
debug_print("called: input_mouse_x()\n");
@input_mouse_x();
POP_SYSV_REGS
}
I64 @input_mouse_y() { return ms.pos.y; }
U0 _Z13input_mouse_yv() {
// input_mouse_y()
PUSH_SYSV_REGS
GET_SYSV_ARGS
debug_print("called: input_mouse_y()\n");
@input_mouse_y();
POP_SYSV_REGS
}