ubi44
New Member
Posts: 32
|
Post by ubi44 on Feb 24, 2024 18:05:54 GMT
Why Full Screen _MouseMove x , y doesn't work !
Here's an example with two attempts that unfortunately don't work !
Is there a solution?
Declare Library Sub glutWarpPointer (ByVal x As Integer, Byval y As Integer) Sub glutSetCursor (ByVal cursor As Integer) End Declare
Screen _NewImage(800, 600, 32) _FullScreen _SquarePixels
Do While _MouseInput: Wend PSet (_Width / 2, _Height / 2)
If _MouseButton(1) Then _MouseMove _Width(0) * .5, _Height(0) * .5
If _MouseButton(2) Then glutWarpPointer _Width(0) / 2, _Height(0) / 2
Locate 1, 1 Print _MouseX, _MouseY _Display Cls
Loop Until _KeyDown(27) System 0
|
|
|
Post by bplus on Feb 24, 2024 19:03:39 GMT
Confirmed, don't know whats wrong with QB64 v2.1 but it works in the QB64pe v3.10 version.
|
|
ubi44
New Member
Posts: 32
|
Post by ubi44 on Feb 24, 2024 20:39:04 GMT
Excellent ! _MouseMove works perfectly with QBPE v3.11 though glutWarpPointer made the same mistake as with QB64 v2.1. Maybe a lead....
|
|
|
Post by bplus on Feb 25, 2024 15:59:41 GMT
If you are noticing mistaken built-in function with QB64pe you can report at that forum and will likely get rapid response and repair by the next version usually and your catch will likely be greatly appreciated.
|
|
|
Post by bplus on Feb 25, 2024 17:50:19 GMT
|
|