diff --git a/README.md b/README.md index af7d39a..676feee 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ OSC.LINK is a control interface for realtime interaction between a mobile or des By snapping a QR code or following a simple URL, user mobile devices are turned into input controllers that can send active and passive interaction data to a local client, and then fed to any platform that can recieve OSC, such as game engines, DAWs or media servers -![screen1.png](screen1.png) ![screen2.png](screen2.png) +![screen1.png](screen1.png) ![screen2.png](screen2.png) ![screen3.png](screen3.png) ___________ @@ -40,12 +40,12 @@ _________________ - string float (optional submission button to send the string as a value) - dropdown menu - colorPicker (thumbnail with popup wheel or RGB/HSB faders) -- Enable passive data from mobile users such as GPS, accelerometer/gyro, roll/tilt/yaw +- Enable location/gps data ____________ ### Changelog -#### [v.0.0.16] 2022-10-15 +#### [v.0.0.16] 2022-11-20 - [x] base impl for sending sensor data #### [v.0.0.15] 2022-10-15 diff --git a/public/server.js b/public/server.js index 5892142..7be032f 100644 --- a/public/server.js +++ b/public/server.js @@ -260,6 +260,19 @@ class SocketOSCServer { ] ) ]; + case 'fader': + return [ + createMessageArgs( + payload.client_index, + payload.id, + [ + { + type: 'i', + value: payload.state + } + ] + ) + ]; case 'motion': return [ createMessageArgs( diff --git a/screen3.png b/screen3.png new file mode 100644 index 0000000..ac52118 Binary files /dev/null and b/screen3.png differ diff --git a/src/stores/socketStore.ts b/src/stores/socketStore.ts index dc2344b..724f538 100644 --- a/src/stores/socketStore.ts +++ b/src/stores/socketStore.ts @@ -29,7 +29,9 @@ export type Instance = { controls: { xy: boolean, buttons: number, - fader: number, + faders: number, + accelerometer: boolean, + gyroscope: boolean, } } }