renpy/renpy — pull request #233 by kyouryuukunn (2013-11-14 05:12:21+00:00)
Title: Set mouse pos

I added renpy.set_mouse_pos(x, y) and renpy.mouse_move(x, y, limit) which jumps or moves the mouse pointer to the given location.
And I also added Actions corresponding to these function, and Preferences which enable or disable these Action.

def set_mouse_pos(x, y):
"""
Jump the mouse pointer to the location given by arguments x and y.
If a android device, this does nothing.
"""
def mouse_move(x, y, limit):
"""
Move the mouse pointer to the location given by arguments x and y in
``limit`` seconds.
If a android device, this does nothing.
"""
class MouseJump(Action):
"""
Jump the mouse pointer to the location given by arguments x and y.
If a android device or _preferences.mouse_move is False, this does
nothing.
"""
class MouseMove(Action):
"""
Move the mouse pointer to the location given by arguments x and y in
``limit`` seconds.
If a android device or _preferences.mouse_move is False, this does
nothing.
"""
Preference("automatic move", "enable") - Enable automatic mouse mode.
Preference("automatic move", "disable") - Disable automatic mouse mode.
Preference("automatic move", "toggle") - Toggle automatic mouse mode.