Compiler game work + enable cast from pointer to int

This commit is contained in:
Krzosa Karol
2023-04-18 13:50:57 +02:00
parent 013db0f985
commit 4ecb329033
7 changed files with 153 additions and 45 deletions

View File

@@ -643,10 +643,10 @@ SetGamepadMappings :: #foreign (mappings: *char): int /
// Input-related functions: mouse
IsMouseButtonPressed :: #foreign (button: MouseButton): bool // Detect if a mouse button has been pressed once
IsMouseButtonDown :: #foreign (button: MouseButton): bool // Detect if a mouse button is being pressed
IsMouseButtonReleased :: #foreign (button: MouseButton): bool // Detect if a mouse button has been released once
IsMouseButtonUp :: #foreign (button: MouseButton): bool // Detect if a mouse button is NOT being pressed
IsMouseButtonPressed :: #foreign (button: int): bool // Detect if a mouse button has been pressed once
IsMouseButtonDown :: #foreign (button: int): bool // Detect if a mouse button is being pressed
IsMouseButtonReleased :: #foreign (button: int): bool // Detect if a mouse button has been released once
IsMouseButtonUp :: #foreign (button: int): bool // Detect if a mouse button is NOT being pressed
GetMouseX :: #foreign (): int // Returns mouse position X
GetMouseY :: #foreign (): int // Returns mouse position Y
GetMousePosition :: #foreign (): Vector2 // Returns mouse position XY