MCPcopy Create free account
hub / github.com/SunOner/sunone_aimbot / setup_hardware

Method setup_hardware

logic/mouse.py:61–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 return f'cuda:{cfg.AI_device}'
60
61 def setup_hardware(self):
62 if cfg.mouse_ghub and not hasattr(self, 'ghub'):
63 from logic.ghub import gHub
64 self.ghub = gHub
65
66 if cfg.mouse_rzr and not hasattr(self, 'rzr'):
67 from logic.rzctl import RZCONTROL
68 dll_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "rzctl.dll")
69 self.rzr = RZCONTROL(dll_path)
70 if not self.rzr.init():
71 logger.error("Failed to initialize rzctl")
72
73 def process_data(self, data):
74 if isinstance(data, sv.Detections):

Callers 2

__init__Method · 0.95
update_settingsMethod · 0.95

Calls 2

RZCONTROLClass · 0.90
initMethod · 0.80

Tested by

no test coverage detected