Fix mouse control, add mouse rectangle, enable mouse by default
commitac54375376585a5c00f06eb833b72336e7aeac9a
authorThomas Perl <thp@perli.net>
Thu, 20 Mar 2008 13:19:00 +0000 (20 14:19 +0100)
committerThomas Perl <thp@perli.net>
Thu, 20 Mar 2008 13:19:00 +0000 (20 14:19 +0100)
tree9931c38d983c68a99cbe9b3e1adb7ffa13442bc6
parent6636418444db263c688c38cbe3b2f11ef8567dd2
Fix mouse control, add mouse rectangle, enable mouse by default

Fix problems with mouse control (lock the mouse if
we are using the keyboard). This makes the mouse
control work nicely together with the keyboard control,
so we enable mouse control by default now.

Draw a mouse rectangle on the screen so the user knows
what's going on when using mouse control. This should
make playing Tennix a bit easier with the mouse, because
the racket is always sloppy (you can move the mouse faster
than you can move the racket.
TODO
game.c
game.h