[fix] use relative percentage-based mouse mapping instead of absolute positions

This commit is contained in:
dijunkun
2025-04-27 14:02:20 +08:00
parent 4b9e86c424
commit c33e4bbe0e
6 changed files with 14 additions and 27 deletions

View File

@@ -28,8 +28,8 @@ typedef enum {
} MouseFlag;
typedef enum { key_down = 0, key_up } KeyFlag;
typedef struct {
int x;
int y;
float x;
float y;
int s;
MouseFlag flag;
} Mouse;