Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Phoenix Edition v3.7.0 Released!
#53
The _WHEEL function still does not seem to work for relative mouse movements? I thought this was one of the things that was addressed in v3.7.0. The code below is example #2 from the _WHEEL wiki page ( https://qb64phoenix.com/qb64wiki/index.php/WHEEL )

Code: (Select All)
ignore% = _MOUSEMOVEMENTX 'dummy call to put mouse into relative movement mode

PRINT "Move your mouse and/or your mouse wheel (ESC to exit)"

d% = _DEVICES 'always read number of devices to enable device input
DO
    _LIMIT 30 'main loop
    DO WHILE _DEVICEINPUT(2) 'loop only runs during a device 2 mouse event
        PRINT _WHEEL(1), _WHEEL(2), _WHEEL(3)
    LOOP
LOOP UNTIL INKEY$ = CHR$(27)

END
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
RE: QB64 Phoenix Edition v3.7.0 Released! - by TerryRitchie - 05-19-2023, 12:51 AM



Users browsing this thread: 11 Guest(s)