[Linux] possible Bug in ExamineMouse()
Posted: Sun Nov 10, 2024 11:06 pm
Can someone confirm this ?
Linux possible Bug in ExamineMouse()
PureBasic 6.12 LTS (x64)
Example (mouse position is not reported correctly):
Now if the position of ExamineKeyboard() and ExamineMouse() are switched it works !?
What is going on 
Linux possible Bug in ExamineMouse()
PureBasic 6.12 LTS (x64)
Example (mouse position is not reported correctly):
Code: Select all
If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0
MessageRequester("Error", "Sprite system can't be initialized", 0)
End
EndIf
If OpenScreen(800, 600, 32, "Sprite")
Repeat
ClearScreen(0)
StartDrawing(ScreenOutput())
DrawText(16,16,"Mouse: " + Str(MouseX()) + " x " + Str(MouseY()))
StopDrawing()
FlipBuffers()
ExamineKeyboard()
ExamineMouse()
Until KeyboardPushed(#PB_Key_Escape)
Else
MessageRequester("Error", "Can't open a 800*600 - 32 bit screen !", 0)
EndIf
Now if the position of ExamineKeyboard() and ExamineMouse() are switched it works !?
Code: Select all
If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0
MessageRequester("Error", "Sprite system can't be initialized", 0)
End
EndIf
If OpenScreen(800, 600, 32, "Sprite")
Repeat
ClearScreen(0)
StartDrawing(ScreenOutput())
DrawText(16,16,"Mouse: " + Str(MouseX()) + " x " + Str(MouseY()))
StopDrawing()
FlipBuffers()
ExamineMouse()
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
Else
MessageRequester("Error", "Can't open a 800*600 - 32 bit screen !", 0)
EndIf