Add sensor support #39
Labels
enhancement
New feature or request
module-device
Issue relates to the device modules
module-hid-usb
Issue relates to the HID & USB modules
An I/O feature representing sensors such as accelerometers and gyroscopes should be added when possible to the
controller
module. The class of the I/O feature may be namedSensor
orPhysicalSensor
, and its state classSensorValue
. The state class shall have a method namedgetValue()
, which returns aVector3fc
containing 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
XboxController
from the list of candidates, as it has no accelerometer or gyroscope.The text was updated successfully, but these errors were encountered: