 ; http://unlicense.org/ - public domain statement
 ; Version 0.1: 11/3/2011
 
+#AllowSameLineComments
 #SingleInstance force
 
 ; Use either the embedded icon in a compiled .exe,
 ; or a separate .ico file when running the .ahk script.
 iconPath := RegExReplace( A_ScriptFullPath, "i).ahk$", ".ico" )
 
+keyMap := ""
+
+keyMaps :=
+(join
+{
+	Arrows: "Up~Up Down~Down Left~Left Right~Right",
+	NumPad: "7~UpLeft 8~Up 9~UpRight 4~Left 5~Down 6~Right 1~DownLeft 2~Down 3~DownRight",
+	IJKL: "U~UpLeft I~Up O~UpRight J~Left K~Down L~Right M~DownLeft ,~Down .~DownRight",
+	HJKL: "H~Left J~Down K~Up L~Right",
+	ESDF: "W~UpLeft E~Up R~UpRight S~Left D~Down F~Right X~DownLeft C~Down V~DownRight",
+	WASD: "Q~UpLeft W~Up E~UpRight A~Left S~Down D~Right Z~DownLeft X~Down C~DownRight"
+}
+)
+
 ; Set up the tray icon and menu
 Menu, Tray, Icon, %iconPath%
 Menu, Tray, Tip, JKLmouse
 Menu, Tray, Add
+Menu, Tray, Add, Left Hand: ESDF, MenuESDF
+Menu, Tray, Add, Left Hand: WASD, MenuWASD
+Menu, Tray, Add
+Menu, Tray, Add, Right Hand: IJKL, MenuIJKL
+Menu, Tray, Add, Right Hand: HJKL, MenuHJKL
+Menu, Tray, Add
 Menu, Tray, Add, About JKLmouse, MenuAbout
+
+Menu, Tray, Check, Left Hand: ESDF
+Menu, Tray, Check, Right Hand: IJKL
 
 ; Display tray balloon
 ; TODO: more useful content?

MenuAbout:
	Run, http://www.jklmouse.com/
	return

	y := y * factor
	MouseMove, x, y, 0, R
}

;ArrayJoin( sep, ary ) {
;    for index, value in ary
;		MsgBox % index
;        ;str .= value . sep
;	MsgBox % str
;    return SubStr( str, 1, -StrLen(sep) )
;}

; Handle the keydown for each of the mouse movement directions
; TODO: Maybe a way to simplify this?
