2022-10-06 19:09:03 +11:00
|
|
|
# PadLab #
|
|
|
|
|
|
|
|
Playground for different analogue stick setups written with SDL2 for graphics and controller support.
|
|
|
|
|
|
|
|
### Building ###
|
|
|
|
Requirements:
|
|
|
|
- C99 compiler
|
2024-03-11 03:13:58 +11:00
|
|
|
- SDL 3.0.0
|
|
|
|
- CMake 3.5 or higher
|
|
|
|
|
|
|
|
Optional:
|
|
|
|
- Python 3 (Only when building OpenGL Core profile or Metal backends)
|
|
|
|
- Fruit device (Only for Metal backend)
|
2022-10-06 19:09:03 +11:00
|
|
|
|
2023-06-28 20:05:08 +10:00
|
|
|
Available backends are:
|
|
|
|
- `BUILD_OPENGL_LEGACY` OpenGL Compatibility profile 1.1 (default ON)
|
|
|
|
- `BUILD_OPENGL` OpenGL Core profile 3.3 (WIP)
|
|
|
|
- `BUILD_METAL` Fruit renderer (WIP, ON by default for APPLE)
|
|
|
|
|
2022-10-06 19:09:03 +11:00
|
|
|
For *nix:
|
|
|
|
```shell
|
2024-03-11 03:13:58 +11:00
|
|
|
cmake -GNinja -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_OPENGL:BOOL=ON
|
2022-10-06 19:09:03 +11:00
|
|
|
cmake --build build
|
|
|
|
```
|