Skip to content

Commit

Permalink
Fix HL
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Dec 20, 2022
1 parent 36df3ac commit 329d2ba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Backends/Kinc-HL/kinc-bridge/system.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ void hl_kinc_register_keyboard(vclosure *keyDown, vclosure *keyUp, vclosure *key
kinc_keyboard_set_key_press_callback(*((FN_KEY_PRESS *)(&keyPress->fun)));
}

typedef void (*FN_MOUSE_DOWN)(int, int, int, int);
typedef void (*FN_MOUSE_UP)(int, int, int, int);
typedef void (*FN_MOUSE_MOVE)(int, int, int, int, int);
typedef void (*FN_MOUSE_WHEEL)(int, int);
typedef void (*FN_MOUSE_DOWN)(int, int, int, int, void *);
typedef void (*FN_MOUSE_UP)(int, int, int, int, void *);
typedef void (*FN_MOUSE_MOVE)(int, int, int, int, int, void *);
typedef void (*FN_MOUSE_WHEEL)(int, int, void *);

void hl_kinc_register_mouse(vclosure *mouseDown, vclosure *mouseUp, vclosure *mouseMove, vclosure *mouseWheel) {
kinc_mouse_set_press_callback(*((FN_MOUSE_DOWN *)(&mouseDown->fun)));
kinc_mouse_set_release_callback(*((FN_MOUSE_UP *)(&mouseUp->fun)));
kinc_mouse_set_move_callback(*((FN_MOUSE_MOVE *)(&mouseMove->fun)));
kinc_mouse_set_scroll_callback(*((FN_MOUSE_WHEEL *)(&mouseWheel->fun)));
kinc_mouse_set_press_callback(*((FN_MOUSE_DOWN *)(&mouseDown->fun)), NULL);
kinc_mouse_set_release_callback(*((FN_MOUSE_UP *)(&mouseUp->fun)), NULL);
kinc_mouse_set_move_callback(*((FN_MOUSE_MOVE *)(&mouseMove->fun)), NULL);
kinc_mouse_set_scroll_callback(*((FN_MOUSE_WHEEL *)(&mouseWheel->fun)), NULL);
}

typedef void (*FN_PEN_DOWN)(int, int, int, float);
Expand Down

0 comments on commit 329d2ba

Please sign in to comment.