USB JOYSTICK DON’T WORK!

Home Forums AR Sandbox Forum USB JOYSTICK DON’T WORK!

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2147
    grotta1931
    Participant

    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: @joeontgg

    Thanks in advance

    #2149
    Sean Robinson
    Participant

    Should 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.

    #2151
    grotta1931
    Participant

    Thanks 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
    endsection

    #2152
    Sean Robinson
    Participant

    Thanks 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.

    #2154
    grotta1931
    Participant

    I 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?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.