All classes use Sys.initialize now

This commit is contained in:
Elias Naur 2004-03-27 13:48:58 +00:00
parent c093f3ace1
commit b98677fb47
14 changed files with 1285 additions and 1308 deletions

View file

@ -217,7 +217,7 @@ public class Mouse {
* Static initialization
*/
private static void initialize() {
System.loadLibrary(Sys.getLibraryName());
Sys.initialize();
initIDs();
// Assign names to all the buttons
@ -245,9 +245,7 @@ public class Mouse {
if (!Window.isCreated())
throw new IllegalStateException("Window must be created prior to creating mouse");
if (!initialized) {
initialize();
}
initialize();
if (created) {
return;
}