add debug
This commit is contained in:
		| @@ -327,6 +327,7 @@ class driver(inputDriver): | ||||
|             return | ||||
|         try: | ||||
|             self.iDevices[fd].grab() | ||||
|             self.env['runtime']['debug'].writeDebugOut("Device grabbed: " + self.iDevices[fd].name, debug.debugLevel.INFO) | ||||
|             self.gDevices[fd] = True                         | ||||
|         except IOError:             | ||||
|             self.gDevices[fd] = True             | ||||
| @@ -337,7 +338,8 @@ class driver(inputDriver): | ||||
|             return       | ||||
|         try: | ||||
|             self.gDevices[fd] = False                     | ||||
|             self.iDevices[fd].ungrab()             | ||||
|             self.iDevices[fd].ungrab()    | ||||
|             self.env['runtime']['debug'].writeDebugOut("Device ungrabbed: " + self.iDevices[fd].name, debug.debugLevel.INFO)                      | ||||
|         except: | ||||
|             pass     | ||||
|     def removeDevice(self,fd): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user