https://github.com/thiagola92/os-listener
https://github.com/thiagola92/os-listener
gdextension godot
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thiagola92/os-listener
- Owner: thiagola92
- License: mit
- Created: 2025-02-03T17:48:56.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-27T17:30:29.000Z (7 months ago)
- Last Synced: 2025-04-13T11:55:13.584Z (6 months ago)
- Topics: gdextension, godot
- Language: C++
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OSListener
Listen for keyboard events from OS (Operating System).- Linux
- ✔️ X11
- ❌ Wayland
- ✔️ Windows
- ❌ MacOSWhy only keyboard events? No reason, I could add others.
# Development
```bash
git clone --filter=blob:none --recurse-submodules https://github.com/thiagola92/os-listener.git
```## Linux (debian)
```bash
sudo apt install libx11-dev libxcb-xinput-devcd godot-cpp
godot --dump-extension-api
scons platform=linux custom_api_file=extension_api.json
cd ..scons platform=linux # Debug
scons platform=linux target=template_release # Release
```Binaries will be located at `test/bin`.
## Windows
```bash
cd godot-cpp
./godot --dump-extension-api
python -m SCons platform=windows custom_api_file=extension_api.json
cd ..python -m SCons platform=windows # Debug
python -m SCons platform=windows target=template_release # Release
```Binaries will be located at `test/bin`.
## Web
**WARNING**: Needs [Emscripten](https://emscripten.org/) installed and in your PATH (check by writing `emcc` in the terminal).```bash
scons platform=web threads=no # Debug
scons platform=web threads=no target=template_release # Release
```**NOTE**: Not about GDExtension for web but it can help: https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_web.html#doc-compiling-for-web