|
@ -179,6 +179,7 @@ when isMainModule: |
|
|
# This avoids "movement lag" |
|
|
# This avoids "movement lag" |
|
|
while display.XCheckTypedEvent(MotionNotify, ev.addr) != 0: |
|
|
while display.XCheckTypedEvent(MotionNotify, ev.addr) != 0: |
|
|
continue |
|
|
continue |
|
|
|
|
|
discard display.XFlush() |
|
|
|
|
|
|
|
|
var xDiff : int = ev.xButton.xRoot - start.xRoot |
|
|
var xDiff : int = ev.xButton.xRoot - start.xRoot |
|
|
var yDiff : int = ev.xButton.yRoot - start.yRoot |
|
|
var yDiff : int = ev.xButton.yRoot - start.yRoot |
|
|