# How do I set VRPN for gamepad joystick?

**URL:** https://discourse.paraview.org/t/how-do-i-set-vrpn-for-gamepad-joystick/9899
**Category:** VR/AR
**Created:** [June 24, 2022, 7:21am UTC](https://discourse.paraview.org/t/how-do-i-set-vrpn-for-gamepad-joystick/9899 "2022-06-24T07:21:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lyz](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@lyz](https://discourse.paraview.org/u/lyz)
#### Post date: [June 24, 2022, 7:21am UTC](https://discourse.paraview.org/t/how-do-i-set-vrpn-for-gamepad-joystick/9899/1 "2022-06-24T07:21:09Z")

</div>

I want to use the logitech wireless gamepad to control the model in PV. I have connect the VRPN server, and the button input had tested using vrpn\_print\_device, where I can get the input singnal. However, I couldn’t control the model in the scene.

```nohighlight
#vrpn config
vrpn_Joywin32 joyWin32 1 60 2 35

```

input tested by vrpn\_print\_device  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/aa2b3d887f45c683fc05d957b3b3bb9935819181.png)

configuretion for VRPN in PV

 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/a917448067a63044819b64157347576ea003a9ca.png)

gamepad I used

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/3744a6240b5ec543beb020580f52cbd9e98bd6ea.jpeg)

---

<div class="post-metadata">

### Author: ![spyridon97](https://discourse.paraview.org/user_avatar/discourse.paraview.org/spyridon97/32/11569_2.png) [@spyridon97](https://discourse.paraview.org/u/spyridon97)
#### Post date: [June 24, 2022, 10:01pm UTC](https://discourse.paraview.org/t/how-do-i-set-vrpn-for-gamepad-joystick/9899/2 "2022-06-24T22:01:37Z")

</div>

cc: @Scott_Wittenburg

---

<div class="post-metadata">

### Author: ![Scott\_Wittenburg](https://discourse.paraview.org/user_avatar/discourse.paraview.org/scott_wittenburg/32/16472_2.png) [@Scott\_Wittenburg](https://discourse.paraview.org/u/Scott_Wittenburg)
#### Post date: [June 28, 2022, 3:42pm UTC](https://discourse.paraview.org/t/how-do-i-set-vrpn-for-gamepad-joystick/9899/3 "2022-06-28T15:42:49Z")

</div>

I personally haven’t tried the vtkVRStylusStyle, possibly [@Sherman, William R. (Ctr)](mailto:william.sherman@nist.gov) is familiar with it and could provide some insight. I have had success moving objects around using the vtkVRGrabTransformStyle and vtkVRGrabPointStyle classes, you might experiment with one of those.

Cheers,  
Scott

---

<div class="post-metadata">

### Author: ![lyz](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@lyz](https://discourse.paraview.org/u/lyz)
#### Post date: [June 29, 2022, 1:00am UTC](https://discourse.paraview.org/t/how-do-i-set-vrpn-for-gamepad-joystick/9899/4 "2022-06-29T01:00:01Z")

</div>

thanks all.
