Shop OBEX P1 Docs P2 Docs Learn Events
Mouse problem — Parallax Forums

Mouse problem

MuppenMuppen Posts: 2
edited 2008-09-22 17:10 in Propeller 1
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

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2008-09-22 17:10
    Hi Stefan,
    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.
Sign In or Register to comment.