Removed updating in another thread for sake of ease of use and smoothness.
This commit is contained in:
parent
ca0616e63f
commit
d348ae2759
1 changed files with 1 additions and 2 deletions
3
test.py
3
test.py
|
|
@ -58,7 +58,6 @@ def mousemove(task):
|
||||||
surf.root_window.inject_mouse_position([x, y])
|
surf.root_window.inject_mouse_position([x, y])
|
||||||
return task.cont
|
return task.cont
|
||||||
|
|
||||||
taskMgr.setupTaskChain('move_chain', numThreads=1)
|
taskMgr.add(mousemove, 'mousemove')
|
||||||
taskMgr.add(mousemove, 'mousemove', taskChain='move_chain')
|
|
||||||
taskMgr.add(drawall, 'draw')
|
taskMgr.add(drawall, 'draw')
|
||||||
run()
|
run()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue