@@ -115,7 +115,6 @@ private static void createNewInitFile() {
115115 try (PrintWriter pw = new PrintWriter ("./settings.ini" )) {
116116 pw .println ("// ==== Settings ====" );
117117 pw .println ();
118- pw .println ("// Keyboard Shortcuts" );
119118 pw .println ("// Possible keys: A-Z, ALT, CTRL or CMD (latter untested), SHIFT, F1-F24, NUM_0-NUM_9" );
120119 pw .println ("// press shortly taps the shortcut, while toggle holds it until invoked again." );
121120 pw .println ("// \" None\" indicates an empty shortcut" );
@@ -136,15 +135,18 @@ private static void createNewInitFile() {
136135 pw .println ("TOPLEFT: toggle SHIFT" );
137136 pw .println ("TOPRIGHT: press F3" );
138137 pw .println ();
139- pw .println ("// Colors in R, G, B" );
138+ pw .println ("// Colors in R, G, B:" );
139+ pw .println ("// The filled circle" );
140140 pw .println ("BG: 238, 238, 238" );
141+ pw .println ("// The rim that shows when a tap is held" );
141142 pw .println ("RIM: 0, 0, 0" );
143+ pw .println ("// The markings on the circle" );
142144 pw .println ("DETAILS: 0, 0, 0" );
143145 pw .println ();
144- pw .println ("// Window position in x, y" );
146+ pw .println ("// Window position in x, y: " );
145147 pw .println ("POS: 200, 55" );
146148 pw .println ();
147- pw .println ("// Window size" );
149+ pw .println ("// Window size: " );
148150 pw .println ("SIZE: 200" );
149151
150152 } catch (IOException e ) {
@@ -156,10 +158,10 @@ private static void createNewInitFile() {
156158 }
157159
158160 private static int [] parseNums (String instr ) {
159- String [] parts = instr .split ("," );
160- int [] res = new int [parts .length ];
161-
161+ int [] res ;
162162 try {
163+ String [] parts = instr .split ("," );
164+ res = new int [parts .length ];
163165
164166 for (int i = 0 ; i < res .length ; i ++) {
165167 res [i ] = Integer .parseInt (parts [i ].trim ());
0 commit comments