Skip to content

Add sensor support #39

Description

@whirvis

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 named Sensor or PhysicalSensor, and its state class SensorValue. The state class shall have a method named getValue(), which returns a Vector3fc containing the current value for the sensor. It shall also have shorthand methods like getX(), getY(), and getZ() which can be found in StickPos.

Device classes which may have an accelerometer and gyroscope feature could be, but are not limited to: Ps3Controller, Ps4Controller, Ps5Controller, Wiimote, NxLeftJoyCon, NxRightJoyCon, and NxProController.

EDIT: Removed XboxController from the list of candidates, as it has no accelerometer or gyroscope.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmodule-deviceIssue relates to the device modulesmodule-hid-usbIssue relates to the HID & USB modules

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions