This commit is contained in:
luboslenco
2025-08-31 19:23:47 +02:00
parent 7ac9185130
commit ce9eb4824a
13 changed files with 42 additions and 41 deletions
+14 -14
View File
@@ -428,7 +428,7 @@ void _update(void *data) {
#endif
iron_update();
ui_end_frame();
if (ui_get_current()) ui_end_frame();
gpu_present();
}
@@ -471,7 +471,7 @@ void _shutdown(void *data) {
void _key_down(int code, void *data) {
iron_key_down(code);
ui_key_down(ui_get_current(), code);
if (ui_get_current()) ui_key_down(ui_get_current(), code);
#ifdef IDLE_SLEEP
input_down = true;
@@ -481,7 +481,7 @@ void _key_down(int code, void *data) {
void _key_up(int code, void *data) {
iron_key_up(code);
ui_key_up(ui_get_current(), code);
if (ui_get_current()) ui_key_up(ui_get_current(), code);
#ifdef IDLE_SLEEP
input_down = false;
@@ -491,7 +491,7 @@ void _key_up(int code, void *data) {
void _key_press(unsigned int character, void *data) {
iron_key_press(character);
ui_key_press(ui_get_current(), character);
if (ui_get_current()) ui_key_press(ui_get_current(), character);
#ifdef IDLE_SLEEP
paused_frames = 0;
@@ -500,7 +500,7 @@ void _key_press(unsigned int character, void *data) {
void _mouse_down(int button, int x, int y, void *data) {
iron_mouse_down(button, x, y);
ui_mouse_down(ui_get_current(), button, x, y);
if (ui_get_current()) ui_mouse_down(ui_get_current(), button, x, y);
#ifdef IDLE_SLEEP
input_down = true;
@@ -510,7 +510,7 @@ void _mouse_down(int button, int x, int y, void *data) {
void _mouse_up(int button, int x, int y, void *data) {
iron_mouse_up(button, x, y);
ui_mouse_up(ui_get_current(), button, x, y);
if (ui_get_current()) ui_mouse_up(ui_get_current(), button, x, y);
#ifdef IDLE_SLEEP
input_down = false;
@@ -520,7 +520,7 @@ void _mouse_up(int button, int x, int y, void *data) {
void _mouse_move(int x, int y, int mx, int my, void *data) {
iron_mouse_move(x, y, mx, my);
ui_mouse_move(ui_get_current(), x, y, mx, my);
if (ui_get_current()) ui_mouse_move(ui_get_current(), x, y, mx, my);
#ifdef IDLE_SLEEP
paused_frames = 0;
@@ -529,7 +529,7 @@ void _mouse_move(int x, int y, int mx, int my, void *data) {
void _mouse_wheel(int delta, void *data) {
iron_mouse_wheel(delta);
ui_mouse_wheel(ui_get_current(), delta);
if (ui_get_current()) ui_mouse_wheel(ui_get_current(), delta);
#ifdef IDLE_SLEEP
paused_frames = 0;
@@ -540,7 +540,7 @@ void _touch_move(int index, int x, int y) {
iron_touch_move(index, x, y);
#if defined(IRON_ANDROID) || defined(IRON_IOS)
ui_touch_move(ui_get_current(), index, x, y);
if (ui_get_current()) ui_touch_move(ui_get_current(), index, x, y);
#endif
#ifdef IDLE_SLEEP
@@ -552,7 +552,7 @@ void _touch_down(int index, int x, int y) {
iron_touch_down(index, x, y);
#if defined(IRON_ANDROID) || defined(IRON_IOS)
ui_touch_down(ui_get_current(), index, x, y);
if (ui_get_current()) ui_touch_down(ui_get_current(), index, x, y);
#endif
#ifdef IDLE_SLEEP
@@ -565,7 +565,7 @@ void _touch_up(int index, int x, int y) {
iron_touch_up(index, x, y);
#if defined(IRON_ANDROID) || defined(IRON_IOS)
ui_touch_up(ui_get_current(), index, x, y);
if (ui_get_current()) ui_touch_up(ui_get_current(), index, x, y);
#endif
#ifdef IDLE_SLEEP
@@ -576,7 +576,7 @@ void _touch_up(int index, int x, int y) {
void _pen_down(int x, int y, float pressure) {
iron_pen_down(x, y, pressure);
ui_pen_down(ui_get_current(), x, y, pressure);
if (ui_get_current()) ui_pen_down(ui_get_current(), x, y, pressure);
#ifdef IDLE_SLEEP
input_down = true;
@@ -586,7 +586,7 @@ void _pen_down(int x, int y, float pressure) {
void _pen_up(int x, int y, float pressure) {
iron_pen_up(x, y, pressure);
ui_pen_up(ui_get_current(), x, y, pressure);
if (ui_get_current()) ui_pen_up(ui_get_current(), x, y, pressure);
#ifdef IDLE_SLEEP
input_down = false;
@@ -596,7 +596,7 @@ void _pen_up(int x, int y, float pressure) {
void _pen_move(int x, int y, float pressure) {
iron_pen_move(x, y, pressure);
ui_pen_move(ui_get_current(), x, y, pressure);
if (ui_get_current()) ui_pen_move(ui_get_current(), x, y, pressure);
#ifdef IDLE_SLEEP
paused_frames = 0;