Laggy mouse with 5.40
Posted: Mon Oct 26, 2015 9:39 am
Hey,
Does anyone else have problems with that code ? The mouse is laggy and barely moves. Linux Mint 17.2. It worked fine with the early betas of 5.40.
Code: Select all
InitSprite() : InitMouse() : InitKeyboard()
OpenWindow(0, 0, 0, 600, 600, "")
OpenWindowedScreen(WindowID(0), 0, 0, 600, 600)
CreateSprite(0, 5, 5)
StartDrawing(SpriteOutput(0))
Box(0, 0, OutputWidth(), OutputHeight(), RGB(255,0,0))
StopDrawing()
Repeat
Repeat
event = WindowEvent()
Until event = 0
ExamineKeyboard() : ExamineMouse()
ClearScreen(0)
DisplaySprite(0, MouseX(), MouseY())
FlipBuffers()
Until KeyboardReleased(#PB_Key_Escape)