MoveMouse/MouseSpeed (BM 1.22) on Ubuntu Dapper

BlitzMax Forums/BlitzMax Programming/MoveMouse/MouseSpeed (BM 1.22) on Ubuntu Dapper

WildStorm(Posted 2006) [#1]
Hi,
i can't get MoveMouse and MouseX/YSpeed working..
It seems like MoveMouse wants to correct the previous movement of the mouse.

DebugLog:-1.00000000 0.00000000 <- User
DebugLog:1.00000000 0.00000000 <- Correcting by movemouse?!
DebugLog:0.00000000 0.00000000
DebugLog:-1.00000000 0.00000000 <- User
DebugLog:1.00000000 0.00000000 <- Correcting by movemouse?!
DebugLog:-1.00000000 0.00000000 <- User
DebugLog:0.00000000 0.00000000
DebugLog:1.00000000 0.00000000 <- Correcting by movemouse?!

Anyone a solution?


WildStorm(Posted 2006) [#2]
Nobody a clue, not even BlitzSupport?!

The stuff works without problems, when i don't use movemouse


SoggyP(Posted 2006) [#3]
Hello.

I'm not sure what I'm seeing here - perhaps you could post some code?

Goodbye.


skidracer(Posted 2006) [#4]
Wildstorm, try this thread for solutions.


WildStorm(Posted 2006) [#5]
The code was/is:

Graphics 800 , 600 , 0
Global oldmx
Global oldmy
   
Repeat
   MoveMouse 400 , 300
   Delay 30 'for less data
   DebugLog mousexspeed()
   DebugLog mouseyspeed()
Until KeyDown( Key_ESCAPE )

Function MouseXSpeed#()
   Local mxs=MouseX()-oldmx
   oldmx=MouseX()
   Return mxs
End Function

Function MouseYSpeed#()
   Local mys=MouseY()-oldmy
   oldmy=MouseY()
   Return mys
End Function


But skidracer has the solution. Thank you alot!!!