From dc29f07b37e3871614dd15a0d51bf17205776862 Mon Sep 17 00:00:00 2001 From: Canvis-Me Date: Tue, 20 Jan 2026 05:04:49 +0800 Subject: [PATCH] Add support for FreeBSD, only for `python3 KeymouseGo.py`. NOTE: You must install tkinter on FreeBSD/Linux to use MouseInfo. --- Event/__init__.py | 2 +- Recorder/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Event/__init__.py b/Event/__init__.py index 9f5cd01..4ed8d78 100644 --- a/Event/__init__.py +++ b/Event/__init__.py @@ -5,7 +5,7 @@ import Event.WindowsEvents as _Event event_cls = _Event.WindowsEvent flag_multiplemonitor = _Event.numofmonitors > 1 -elif system() in ['Linux', 'Darwin']: +elif system() in ['Linux', 'Darwin', 'FreeBSD']: import Event.UniversalEvents as _Event event_cls = _Event.UniversalEvent flag_multiplemonitor = False diff --git a/Recorder/__init__.py b/Recorder/__init__.py index 7d47501..2fe2f02 100644 --- a/Recorder/__init__.py +++ b/Recorder/__init__.py @@ -5,7 +5,7 @@ if system() == 'Windows': import Recorder.WindowsRecorder as _Recorder _Recorder.globalv.key_combination_trigger = ['lwin', 'lshift', 'rshift', 'lcontrol', 'rcontrol', 'lmenu', 'rmenu'] -elif system() in ['Linux', 'Darwin']: +elif system() in ['Linux', 'Darwin', 'FreeBSD']: import Recorder.UniversalRecorder as _Recorder _Recorder.globalv.key_combination_trigger = ['win', 'shiftright', 'shift', 'ctrlright', 'ctrl', 'altright', 'alt'] else: