[mouse] Screw it, increase mouse speed

I give up, I don't care about the touchpad.
This commit is contained in:
Kevin Lange 2011-10-31 12:36:02 -05:00
parent 28cc0725d0
commit cefc902d32

View File

@ -5,6 +5,8 @@ int8_t mouse_byte[3];
int8_t mouse_x = 0;
int8_t mouse_y = 0;
#define MOUSE_SCALE 10;
int32_t actual_x = 5120;
int32_t actual_y = 3835;
@ -142,8 +144,8 @@ void mouse_handler(struct regs *r) {
mouse_cycle = 0;
uint32_t previous_x = actual_x;
uint32_t previous_y = actual_y;
actual_x = actual_x + mouse_x;
actual_y = actual_y + mouse_y;
actual_x = actual_x + mouse_x * MOUSE_SCALE;
actual_y = actual_y + mouse_y * MOUSE_SCALE;
if (actual_x < 0) actual_x = 0;
if (actual_x > 10230) actual_x = 10230;
if (actual_y < 0) actual_y = 0;