From 7e00678df69df968ccf235d46190702bdc59e9ad Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 2 May 2020 23:58:34 -0500 Subject: 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. --- README | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README') diff --git a/README b/README index d04d661..37baa7f 100644 --- a/README +++ b/README @@ -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 -- cgit v1.2.3