 Menu, Tray, Add, Right Hand: IJKL, MenuIJKL
 Menu, Tray, Add, Right Hand: HJKL, MenuHJKL
 Menu, Tray, Add
+Menu, Tray, Add, Acceleration, MenuAccelerate
+Menu, Tray, Add
 Menu, Tray, Add, About JKLmouse, MenuAbout
 Menu, Tray, Add, JKLmouse Website, MenuWebsite
 
+if( accelerate )
+	Menu, Tray, Check, Acceleration
 Menu, Tray, Check, Left Hand: %keysLeft%
 Menu, Tray, Check, Right Hand: %keysRight%
 

	Menu, Tray, Uncheck, Left Hand: %keysLeft%
	keysLeft := keys
	Menu, Tray, Check, Left Hand: %keysLeft%
	RegStringWrite( "KeysLeft", keysLeft )
	ReloadAllKeys()
}


; 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 accelerate, repeat
	++repeat
	factor := accelerate ? Floor( ( repeat + 1 ) / 2 ) : 1
	x := x * factor
	y := y * factor
	MouseMove, x, y, 0, R
