Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
chore: Add JS device control example
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Dec 31, 2020
1 parent b57ba76 commit e768f95
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You'll usually interact with devices with Device instances, which will be differ

As a user of a Buttplug Client API, you should never be expected to send raw Buttplug Messages. Most Client APIs will provide message sending functions for you, usually attached to device objects or structures. If the device accepts the message type represented by the function you call, it should be sent to the device. Otherwise, you'll receive an error about message compatibility.

<CodeSwitcher :languages="{rust:'Rust', csharp:'C#'}">
<CodeSwitcher :languages="{rust:'Rust', csharp:'C#', js: 'Javascript'}">
<template v-slot:rust>

<<< @/examples/rust/src/bin/device_control.rs
Expand All @@ -32,5 +32,9 @@ As a user of a Buttplug Client API, you should never be expected to send raw But

<<< @/examples/csharp/DeviceControlExample/Program.cs

</template>
<template v-slot:js>

<<< @/examples/javascript/device-config-example.js
</template>
</CodeSwitcher>

0 comments on commit e768f95

Please sign in to comment.