Home › Forums › AR Sandbox Forum › USB JOYSTICK DON’T WORK!
- This topic has 4 replies, 2 voices, and was last updated 2 years, 5 months ago by grotta1931.
-
AuthorPosts
-
June 22, 2022 at 3:27 am #2147grotta1931Participant
Hi , i attempted to connect the two buttons that i’ve bought in the past following the creator guide , i put the instructions in the arsandbox configuration, these instructions:
(folder: xed ~/.config/Vrui-8.0/Applications/SARndbox.cfg)
section Vrui
section Desktop
# Disable the screen saver:
inhibitScreenSaver true
inputDeviceAdapterNames += (HIDAdapter)section HIDAdapter inputDeviceAdapterType HID inputDeviceNames (USBEncoder) endsection section USBEncoder name USBEncoder deviceVendorProductId 0079:0006 trackingDeviceName Mouse endsection section MouseAdapter # Hide the mouse cursor after 5 seconds of inactivity: mouseIdleTimeout 5.0 endsection section Window # Force the application's window to full-screen mode: windowFullscreen true endsection section Tools section DefaultTools # Assegna il comando piove/asciuga ai pulsanti "1" e "2": section WaterTool toolClass GlobalWaterTool bindings ((Mouse, 1, 2)) endsection endsection endsection endsection
endsection
but the buttons keep not working and in my terminal says this:
InputDeviceManager: Ignoring input device adapter HIDAdapter due to exception Configuration file tag “name” not found in section “/Vrui/Desktop/HIDAdapter/USBEncoder”
Can anyone please help me?
if you want to chat with me on some social
INSTAGRAM: thatjoeee (the one with 17k)
TELEGRAM: @joeontggThanks in advance
June 22, 2022 at 7:13 am #2149Sean RobinsonParticipantShould section USBEncoder be inside section HIDAdapter?
The example for “Using USB Input Devices Directly From Vrui.cfg” shows the WingmanExtreme3DPro is a child of HIDAdapter, not a sibling.
June 23, 2022 at 3:18 am #2151grotta1931ParticipantThanks Sean for your help, i solved that problem , but now i don’t know how to associate the buttons to some specify actions not temporary but permanent as i did with buttons 1,2 .
I tried to replace mouse with USBEncoder but i don’t know witch number or letter are the button.
section Tools
section DefaultTools
# Assegna il comando piove/asciuga ai pulsanti “1” e “2”:
section WaterTool
toolClass GlobalWaterTool
bindings ((Mouse, 1, 2))
endsection
endsectionJune 23, 2022 at 8:11 am #2152Sean RobinsonParticipantThanks Sean for your help, i solved that problem
Did my answer solve the problem? Or did you need to change something else?
I tried to replace mouse with USBEncoder but i don’t know witch number or letter are the button.
You will need to know the keyboard key(s) assigned to the button(s). With the cursor in a text editor, what letter or number appears when you press the USB button(s)? Can you assign a specific key with the button’s software?
If you have two buttons set up with the letters “p” (piove) and “a” (asciuga), I believe you will need to change the line bindings ((Mouse, 1, 2)) to bindings ((USBEncoder, p, a)).
bindings ((Mouse, p, a)) works for me, on a normal USB keyboard, to flood and drain.
June 23, 2022 at 8:31 am #2154grotta1931ParticipantI solved by putting Button1 and Button2 in the config file, thanks for your help my friend :),i have another dubt, do you know how to convert dem file to grid?
-
AuthorPosts
- You must be logged in to reply to this topic.