Monado OpenXR Runtime
|
Driver for the Sony PlayStation Move Controller. More...
Files | |
file | psmv_driver.c |
PlayStation Move motion controller prober and driver code. | |
file | psmv_interface.h |
Interface to PS Move driver. | |
Functions | |
int | psmv_found (struct xrt_prober *xp, struct xrt_prober_device **devices, size_t num_devices, size_t index, struct xrt_device **out_xdevs) |
Probing function for the PS Move devices. More... | |
#define | PSMV_SPEW(p, ...) |
#define | PSMV_DEBUG(p, ...) |
#define | PSMV_ERROR(p, ...) |
#define | SET_INPUT(NAME) (psmv->base.inputs[PSMV_INDEX_##NAME].name = XRT_INPUT_PSMV_##NAME) |
enum | psmv_input_index { PSMV_INDEX_PS_CLICK, PSMV_INDEX_MOVE_CLICK, PSMV_INDEX_START_CLICK, PSMV_INDEX_SELECT_CLICK, PSMV_INDEX_SQUARE_CLICK, PSMV_INDEX_CROSS_CLICK, PSMV_INDEX_CIRCLE_CLICK, PSMV_INDEX_TRIANGLE_CLICK, PSMV_INDEX_TRIGGER_VALUE, PSMV_INDEX_BODY_CENTER_POSE, PSMV_INDEX_BALL_CENTER_POSE, PSMV_INDEX_BALL_TIP_POSE } |
Indecies where each input is in the input list. More... | |
enum | psmv_button_bit { PSMV_BUTTON_BIT_MOVE_F2 = (1 << 6), PSMV_BUTTON_BIT_TRIGGER_F2 = (1 << 7), PSMV_BUTTON_BIT_PS = (1 << 8), PSMV_BUTTON_BIT_MOVE_F1 = (1 << 11), PSMV_BUTTON_BIT_TRIGGER_F1 = (1 << 12), PSMV_BUTTON_BIT_TRIANGLE = (1 << 20), PSMV_BUTTON_BIT_CIRCLE = (1 << 21), PSMV_BUTTON_BIT_CROSS = (1 << 22), PSMV_BUTTON_BIT_SQUARE = (1 << 23), PSMV_BUTTON_BIT_START = (1 << 27), PSMV_BUTTON_BIT_SELECT = (1 << 24), PSMV_BUTTON_BIT_MOVE_ANY, PSMV_BUTTON_BIT_TRIGGER_ANY } |
Mask for the button in the button uint32_t. More... | |
Driver for the Sony PlayStation Move Controller.
#define PSMV_DEBUG | ( | p, | |
... | |||
) |
#include <drivers/psmv/psmv_driver.c>
#define PSMV_ERROR | ( | p, | |
... | |||
) |
#include <drivers/psmv/psmv_driver.c>
#define PSMV_SPEW | ( | p, | |
... | |||
) |
#include <drivers/psmv/psmv_driver.c>
enum psmv_button_bit |
#include <drivers/psmv/psmv_driver.c>
Mask for the button in the button uint32_t.
enum psmv_input_index |
#include <drivers/psmv/psmv_driver.c>
Indecies where each input is in the input list.
int psmv_found | ( | struct xrt_prober * | xp, |
struct xrt_prober_device ** | devices, | ||
size_t | num_devices, | ||
size_t | index, | ||
struct xrt_device ** | out_xdevs | ||
) |
#include <drivers/psmv/psmv_interface.h>
Probing function for the PS Move devices.