diff options
author | cheapie <no-email-for-you@example.com> | 2020-05-02 23:58:34 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2020-05-02 23:58:34 -0500 |
commit | 7e00678df69df968ccf235d46190702bdc59e9ad (patch) | |
tree | b8a2a431cc8558c2905e8c927471036d7ac337c0 /README | |
parent | 7f5eaac5c35d4c26d566b39a45e93c4582712b90 (diff) | |
download | digistuff-7e00678df69df968ccf235d46190702bdc59e9ad.tar digistuff-7e00678df69df968ccf235d46190702bdc59e9ad.tar.gz digistuff-7e00678df69df968ccf235d46190702bdc59e9ad.tar.bz2 digistuff-7e00678df69df968ccf235d46190702bdc59e9ad.tar.xz digistuff-7e00678df69df968ccf235d46190702bdc59e9ad.zip |
Add digilines game controller
This node allows players to have their keypresses forwarded to a LuaC, instead of moving the player around.
This is intended to be used for making LuaC-based games.
Diffstat (limited to 'README')
-rw-r--r-- | README | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -80,3 +80,13 @@ To write a card, send a command in the following format: After sending the write command, swipe the card to be written and the reader will send back the following message: {event = "write"} Both blank and previously written cards can be written to. If the card was not blank, it will be overwritten. + +How to use the game controller: +After setting a channel, right-click the controller to start/stop using it. +While using a controller, it will send a table with the control inputs, pitch, yaw, look vector, and name of the player using the controller each time one of these values changes, up to 5 times per second. +When a player leaves a controller, the string "player_left" is sent. +In addition to right-clicking the controller in use to stop using it, the following will also cause a player to stop using the controller: +* The controller is moved or removed +* The player leaves the game +* The player is teleported away from the controller +* The controller receives the string "release" on its digilines channel |