support for n buttons

This commit is contained in:
Brian Matzon 2004-04-29 16:21:37 +00:00
parent fc7c0fa846
commit 54e06e4026
1 changed files with 7 additions and 7 deletions

View File

@ -152,13 +152,6 @@ public class Controller {
Sys.initialize();
initIDs();
// Assign names to all the buttons
buttonName = new String[8];
for (int i = 0; i < 8; i ++) {
buttonName[i] = "BUTTON" + i;
buttonMap.put(buttonName[i], new Integer(i));
}
initialized = true;
}
@ -176,6 +169,13 @@ public class Controller {
}
nCreate();
// Assign names to all the buttons
buttonName = new String[buttons.length];
for (int i = 0; i < buttons.length; i ++) {
buttonName[i] = "BUTTON" + i;
buttonMap.put(buttonName[i], new Integer(i));
}
created = true;
}