Skip to content

Commit

Permalink
chore: log joystick value properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Apr 7, 2021
1 parent 32f1258 commit 1f36d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function describeEvent(event: string, args: any[]): string {
return `Shuttle ( index ${index}) value: ${value}. Metadata: ${metadataStr(metadata)}`
} else if (event === 'joystick') {
const index = args[0]
const value = args[1]
const value = JSON.stringify(args[1])
const metadata = args[2]
return `Joystick ( index ${index}) value: ${value}. Metadata: ${metadataStr(metadata)}`
} else if (event === 'tbar') {
Expand Down

0 comments on commit 1f36d44

Please sign in to comment.