 	MouseMove, x, y, 0, R
 }
 
+; Handle the keydown for each of the mouse movement directions
+; TODO: Maybe a way to simplify this?
 MouseUp:
 	Move( 0, -1 )
 	return


return

SetKeys( mod ) {
	
	; Left hand

	SetKey( mod, "Right", "MouseRight" )
}

; Set up one hotkey by combining the modifier and key names.
; Take the specified action on key down,
; and always stop acceleration on key up.
SetKey( mod, key, action ) {
	keydown = %mod% & %key%
	Hotkey %keydown%, %action%
	Hotkey %keydown% UP, StopAcceleration
}

; Move the mouse the specifed x and y distances, both scaled by the
; mouse acceleration factor calculated from the key repeat count.
Move( x, y ) {
	global repeat
	++repeat
