Sfoglia il codice sorgente

Updated to use new system driver initialisation.

woollybah 7 anni fa
parent
commit
639ce5347c
1 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  1. 8 4
      sdlsystem.mod/sdlsystem.bmx

+ 8 - 4
sdlsystem.mod/sdlsystem.bmx

@@ -120,18 +120,22 @@ Type TSDLSystemDriver Extends TSystemDriver
 		End If
 		Return 1
 	End Function
-	 
+
+	Method Name:String()
+		Return "SDLSystemDriver"
+	End Method
+	
 End Type
 
 Rem
 bbdoc: 
 End Rem
 Function SetEventFilterCallback(callback:Int(data:Object, event:Int), data:Object = Null)
-	TSDLSystemDriver(Driver)._eventFilterCallback = callback
-	TSDLSystemDriver(Driver)._eventFilterUserData = data
+	TSDLSystemDriver(SystemDriver())._eventFilterCallback = callback
+	TSDLSystemDriver(SystemDriver())._eventFilterUserData = data
 End Function
 
-Driver = New TSDLSystemDriver
+InitSystemDriver(New TSDLSystemDriver)
 
 Rem
 bbdoc: Information about multiple finger gestures.