Skip to content

Commit 58f7e92

Browse files
committed
feat(controllers): add vive wand bindings
Signed-off-by: Schmarni <[email protected]>
1 parent c1bd3b9 commit 58f7e92

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

src/objects/input/oxr_controller.rs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,53 @@ fn suggest_bindings(
187187
),
188188
],
189189
);
190+
bind_all(
191+
"/interaction_profiles/htc/vive_controller",
192+
&[
193+
(
194+
actions.trigger.as_raw(),
195+
&[
196+
"/user/hand/left/input/trigger/value",
197+
"/user/hand/right/input/trigger/value",
198+
],
199+
),
200+
(
201+
actions.stick_click.as_raw(),
202+
&[
203+
"/user/hand/left/input/trackpad/click",
204+
"/user/hand/right/input/trackpad/click",
205+
],
206+
),
207+
(
208+
actions.button.as_raw(),
209+
&[
210+
"/user/hand/left/input/menu/click",
211+
"/user/hand/right/input/menu/click",
212+
],
213+
),
214+
(
215+
actions.grip.as_raw(),
216+
&[
217+
"/user/hand/left/input/squeeze/click",
218+
"/user/hand/right/input/squeeze/click",
219+
],
220+
),
221+
(
222+
actions.stick.as_raw(),
223+
&[
224+
"/user/hand/left/input/trackpad",
225+
"/user/hand/right/input/trackpad",
226+
],
227+
),
228+
(
229+
actions.space.as_raw(),
230+
&[
231+
"/user/hand/left/input/aim/pose",
232+
"/user/hand/right/input/aim/pose",
233+
],
234+
),
235+
],
236+
);
190237
bind_all(
191238
"/interaction_profiles/valve/index_controller",
192239
&[

0 commit comments

Comments
 (0)