Is _WHEEL not working?
#1
In the wiki under _WHEEL the following example code is given. If I'm understanding this correctly when you issue the command:

ignore = _MOUSEMOVEMENTX

this is supposed to put the mouse into a relative movement mode allowing _WHEEL(1) and _WHEEL(2) to read the mouse x,y movements. However, no matter what I try I can't seem to get this working? Any suggestions? I went back as far as version 0.8.2 and it doesn't work there either.

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)
Software and cathedrals are much the same — first we build them, then we pray.
QB64 Tutorial
Reply


Messages In This Thread
Is _WHEEL not working? - by TerryRitchie - 04-17-2023, 05:36 PM
RE: Is _WHEEL not working? - by Jack - 04-17-2023, 05:47 PM
RE: Is _WHEEL not working? - by TerryRitchie - 04-17-2023, 05:56 PM
RE: Is _WHEEL not working? - by bplus - 04-17-2023, 07:57 PM
RE: Is _WHEEL not working? - by TerryRitchie - 04-17-2023, 08:20 PM
RE: Is _WHEEL not working? - by bplus - 04-17-2023, 08:50 PM
RE: Is _WHEEL not working? - by TerryRitchie - 04-17-2023, 09:29 PM
RE: Is _WHEEL not working? - by TempodiBasic - 04-19-2023, 01:54 PM
RE: Is _WHEEL not working? - by TerryRitchie - 04-20-2023, 04:01 AM
RE: Is _WHEEL not working? - by Jack - 04-20-2023, 09:09 AM
RE: Is _WHEEL not working? - by TerryRitchie - 04-20-2023, 03:10 PM
RE: Is _WHEEL not working? - by TempodiBasic - 04-20-2023, 07:44 PM
RE: Is _WHEEL not working? - by SMcNeill - 04-21-2023, 04:56 PM
RE: Is _WHEEL not working? - by bplus - 04-21-2023, 06:28 PM



Users browsing this thread: 3 Guest(s)