Removed d3dshot
Removed d3dshot because newer Python versions do not support it/its dependencies.
This commit is contained in:
		
							parent
							
								
									05c29e7e72
								
							
						
					
					
						commit
						6cb5c43692
					
				|  | @ -8,9 +8,6 @@ import pyautogui | ||||||
| 
 | 
 | ||||||
| PLATFORM_SYS = platform.system() | PLATFORM_SYS = platform.system() | ||||||
| 
 | 
 | ||||||
| if PLATFORM_SYS == "Windows": |  | ||||||
|     import d3dshot |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| class AbstractGameIO(ABC): | class AbstractGameIO(ABC): | ||||||
|     """Base class for each platform.""" |     """Base class for each platform.""" | ||||||
|  | @ -46,10 +43,9 @@ class AbstractGameIO(ABC): | ||||||
| class WindowsGameIO(AbstractGameIO): | class WindowsGameIO(AbstractGameIO): | ||||||
|     def __init__(self): |     def __init__(self): | ||||||
|         super().__init__() |         super().__init__() | ||||||
|         self.d = d3dshot.create() |  | ||||||
| 
 | 
 | ||||||
|     def fetch_sshot(self): |     def fetch_sshot(self): | ||||||
|         return self.d.screenshot()  # TODO: Cut this to self.loc(x, y, w, h) |         return pyautogui.screenshot(region=self.loc) | ||||||
| 
 | 
 | ||||||
|     def key_up(self, key: str): |     def key_up(self, key: str): | ||||||
|         pyautogui.keyUp(key) |         pyautogui.keyUp(key) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue