Skip to content

Commit

Permalink
fader event handling
Browse files Browse the repository at this point in the history
  • Loading branch information
laubsauger committed Nov 21, 2022
1 parent ac77800 commit 138cfab
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

___________

Expand Down Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions public/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,19 @@ class SocketOSCServer {
]
)
];
case 'fader':
return [
createMessageArgs(
payload.client_index,
payload.id,
[
{
type: 'i',
value: payload.state
}
]
)
];
case 'motion':
return [
createMessageArgs(
Expand Down
Binary file added screen3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/stores/socketStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export type Instance = {
controls: {
xy: boolean,
buttons: number,
fader: number,
faders: number,
accelerometer: boolean,
gyroscope: boolean,
}
}
}
Expand Down

0 comments on commit 138cfab

Please sign in to comment.