Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ponywolf/ponysense
SteelSeries GameSense™ SDK Helper Library for Lua Game engines
https://github.com/ponywolf/ponysense
Last synced: 10 days ago
JSON representation
SteelSeries GameSense™ SDK Helper Library for Lua Game engines
- Host: GitHub
- URL: https://github.com/ponywolf/ponysense
- Owner: ponywolf
- License: mit
- Created: 2019-07-10T14:58:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-01T20:11:36.000Z (over 5 years ago)
- Last Synced: 2024-07-31T09:10:11.012Z (3 months ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-solar2d - ponysense - SteelSeries GameSense™ SDK Helper Library. (Input Handling)
README
# ponysense
SteelSeries GameSense™ SDK Helper Library for Lua Game enginesGameSense™ is a framework in SteelSeries Engine that allows games & apps to send status updates to Engine, which can then drive illumination, haptic & OLED display capabilities of SteelSeries devices. One simple example would be displaying the player's health on the row of functions keys as a bargraph that gets shorter and changes from green to red as their health decreases -- even flashing when it gets critically low.
#### Initialize
Just initalize the Module to get started:
```
ponysense.addGame("SKIPCHASER", "SKIPCHASER", "Ponywolf", ponysense.colors.RED)
```#### Handler(s)
Setup a handler (or multiple handlers):
```
local healthHandler = {
device = "keyboard",
zone = "function-keys",
color = {
gradient = {
zero = ponysense.RGB(255,0,0),
hundred = ponysense.RGB(0,255,0),
}
},
mode = "percent",
}
ponysense.bindEvent({ event = "HEALTH", handler = healthHandler})
```#### Send Values
Push values to your handlers
```
ponysense.sendEventValue("HEALTH", player.health)
```