-
Notifications
You must be signed in to change notification settings - Fork 1
Add sensor support #39
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestmodule-deviceIssue relates to the device modulesIssue relates to the device modulesmodule-hid-usbIssue relates to the HID & USB modulesIssue relates to the HID & USB modules
Description
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestmodule-deviceIssue relates to the device modulesIssue relates to the device modulesmodule-hid-usbIssue relates to the HID & USB modulesIssue relates to the HID & USB modules
An I/O feature representing sensors such as accelerometers and gyroscopes should be added when possible to the
controllermodule. The class of the I/O feature may be namedSensororPhysicalSensor, and its state classSensorValue. The state class shall have a method namedgetValue(), which returns aVector3fccontaining the current value for the sensor. It shall also have shorthand methods likegetX(),getY(), andgetZ()which can be found inStickPos.Device classes which may have an accelerometer and gyroscope feature could be, but are not limited to:
Ps3Controller,Ps4Controller,Ps5Controller,Wiimote,NxLeftJoyCon,NxRightJoyCon, andNxProController.EDIT: Removed
XboxControllerfrom the list of candidates, as it has no accelerometer or gyroscope.