I've researched a lot about how to use it on games and there are some options such as:
- Apple's Spritekit on XCode;
- MonoGame or FNA + Xamarin: https://github.com/xamarin/mac-samples/ ... BarExample
- QT + QT Touch Bar: https://github.com/KDAB/KDMacTouchBar
- Electron + Electron TouchBar (doesn't require XCode): https://github.com/pahund/electron-touch-bar
- SDL: https://github.com/joncampbell123/dosbox-x/issues/967
Regarding the SDL way, joncampbell123 user said "There is no need, and no API, for your app to know whether or not there is a Touch Bar available. Whether your app is running on a machine that supports the Touch Bar or not, your app’s onscreen user interface (UI) appears and behaves the same way. That's nice, so instead of creating a touch bar object only if one is present, applications have to create one and set it (and waste memory on systems that don't have one!) at all times.", then, "I am only able to add touch bar support to SDL1 builds because adding touch bar support requires modifying the NSApplication and NSWindow objects inside the SDL1 library. I do not modify the SDL2 library because the goal is to keep DOSBox-X compatible with the actively developed main SDL2 project. SDL1 builds have touch bar support, SDL2 builds do not."
Plus I found this: https://www.rderewianko.com/detecting-a-touchbar-mac/
So, there are lots of info, but what I really wanna know is, can anyone help me or at least give me a clue on how to start making a working touchbar library for love2d? For Mac users who wanna help, you can use a Touch Bar Simulator, it doesn't require XCode and works in any Mac: https://github.com/sindresorhus/touch-bar-simulator.
I really appreciate your help, if possible
