Mouse problem
Muppen
Posts: 2
Hello propeller fans.
Can someone explain how the driver for the mouse·works.
Mouse.spin
There is very little comments in the file.
Thanks:
Stefan from Sweden.
Post Edited (Muppen) : 9/22/2008 3:56:35 PM GMT
Can someone explain how the driver for the mouse·works.
Mouse.spin
There is very little comments in the file.
Thanks:
Stefan from Sweden.
Post Edited (Muppen) : 9/22/2008 3:56:35 PM GMT
Comments
Graphics_Demo.spin is a good place to see the use of the mouse driver. Line 91 shows it being started up, the explanation of the arguements are provided in mouse.spin. Lines 105 and 106 shows how to get and interpret the data. Running accumulators mousex and mousey have added to them the delta provided by the mouse driver, and the #> and <# provide the boundries of the allowable values of mousex and mousey. At this point you have values to use in you program. Any further questions?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.