diff options
| author | Carlos Maiolino <[email protected]> | 2025-11-29 17:32:25 +0100 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-11-29 17:32:25 +0100 |
| commit | 4242664fcd5d2c3e0fe24ffec038c3767276f3e5 (patch) | |
| tree | 8d6ca226f58fe9f7601f83bec8cb8c2c9b04ce67 /src/spaceship.c | |
| parent | f497ea0100a28f8dffed57eebe52ec58c556e1e1 (diff) | |
Change mouse input to use mouse speed
Instead of directly setting the object accordingly to the mouse's cursor
orientation, use a 'speed' trick to move the object.
X and Y coordinates are now incremented according to the speed instead
of hard setting them to the current x*y hardware coordinates.
Use al_set_mouse_xy() to always reset the real mouse position (not the
object). This will avoid the mouse position to hit one of the limits
preventing the object to be moved further.
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src/spaceship.c')
0 files changed, 0 insertions, 0 deletions
