defold-buttplug

May 27, 2022 ยท View on GitHub

Module to work with Buttplug.io in Defold. WIP, so far only HTML5 target.

how to use

This module works with standart Defold html templates.

  1. Add dependency, learn more in official manual.
  2. Add require, e.g.
    local buttplug = require "buttplug.web"
  1. Init buttplug
buttplug.init()

You should see "connect" button on your web page after this:

buttons

  1. Click on this button and connect your device, list of devices.
  2. Vibrate!
buttplug.vibrate(speed, duration)