View Single Post
Old 05 September 2014, 15:42   #14
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by hukka View Post
Okay, I took it out of the vbl routine and into the mainloop which does this now:

Code:
    WaitLine 270
    move.w    #$CC00, POTGO+CUSTOM

    WaitLine 276
    move.w    POTGOR+CUSTOM, Pot
And it still doesn't work, Pot still reads $5500. In both WinUAE and my 1200. I made sure that's the only place POTGO(R) gets touched in my code. The WaitLine macro works properly.
It should work, it has to work. It is exact same method as reading right (or middle) mouse button. (You do remember that read data is inverted? 1 = not pressed, 0 = pressed)

Quote:
Thanks for the tip - does anyone happen to have info on how to set the priority?
Interrupt node priority field, check RKM
Toni Wilen is offline  
 
Page generated in 0.07365 seconds with 11 queries