mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
d/ohmd: Only set output name if there is an output
This needs to be revisited after OpenHMD gets a proper API for haptic feedback. closes #119
This commit is contained in:
parent
5d605c7b3f
commit
598c1a3b56
|
@ -1131,7 +1131,9 @@ create_controller(ohmd_context *ctx, int device_idx, int device_flags, enum xrt_
|
|||
// in case the hardware is an analog trigger, change the input after a half pulled trigger.
|
||||
ohd->make_trigger_digital = true;
|
||||
|
||||
ohd->base.outputs[0].name = XRT_OUTPUT_NAME_SIMPLE_VIBRATION;
|
||||
if (num_outputs > 0) {
|
||||
ohd->base.outputs[0].name = XRT_OUTPUT_NAME_SIMPLE_VIBRATION;
|
||||
}
|
||||
|
||||
ohd->controls_mapping[OHMD_TRIGGER] = SIMPLE_SELECT_CLICK;
|
||||
ohd->controls_mapping[OHMD_MENU] = SIMPLE_MENU_CLICK;
|
||||
|
|
Loading…
Reference in a new issue