A JS library for using daydream controllers in Javascript!
var controller = new DaydreamController(); // returns Object
controller.connect(); // returns Bool
controller.disconnect(); // returns Undefined
controller.getInfo(); // returns Object
{
battery: int,
model: string,
serial: string,
firmware: float,
hardware: float,
software: string,
manufacturer: string,
pnp_id: string
}
controller.getBattery(); // returns Int (0 - 100)
controller.getModel(); // returns String
controller.getSerial(); // returns String
controller.getFirmware(); // returns Float
controller.getHardware(); // returns Float
controller.getSoftware(); // returns String
controller.getManufacturer(); // returns String
controller.getPnPID(); // returns String