1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.36 Bug Reporting thread
    Solutions and more information may already be available.

Unable to change SOME input mappings

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by powerbuoy, Aug 17, 2013.

  1. powerbuoy

    powerbuoy
    Expand Collapse

    Joined:
    Aug 17, 2013
    Messages:
    9
    I've managed to change some of the default Xbox 360 controller's mappings, but not others.

    All I really want to do is add the ability to enter "bullet time" using the controller (instead of having to press Alt+Down). So I copied the code for this in the keyboard mapping, and applied it to the Xbox 360 mapping, but for some reason it simply won't work. Absolutely nothing happens when I click the button.

    Can anyone spot the error? (the only problem is with the D-pad (bottom of file))

    Thanks

    Code:
    // Product Name: Controller (Xbox 360 Wireless Receiver for Windows)
    // GUID: {02A1045E-0000-0000-0000-504944564944}
    // axes: 5^Y^X^U^R^Z
     
    // 15% deadzone for the camera things
    $gp_deadzone = "-0.15 0.15";
    
    // Camera
    moveMap.bind(%device, thumbrx, "D", $gp_deadzone, gamepadYaw);
    moveMap.bind(%device, thumbry, "D", $gp_deadzone, gamepadPitch);
    
    // Movement : deadzones and such are in lua for these
    moveMap.bind(%device, thumblx, "D", $gp_deadzone, joy_steer);
    moveMap.bind(%device, triggerl, "D", $gp_deadzone, brake);
    moveMap.bind(%device, triggerr, "D", $gp_deadzone, accelerate);
    
    // Triggers
    moveMap.bindCmd(%device, btn_r, "gamepadZoom(-0.1);", "gamepadZoom(0);");
    moveMap.bindCmd(%device, btn_l, "gamepadZoom(0.1);", "gamepadZoom(0);");
    
    // Buttons
    moveMap.bind(%device, btn_b, parkingbrake_toggle);
    
    // D-pad
    moveMap.bindCmd(%device, dpadl, "beamNGResetPhysics();", "");
    moveMap.bindCmd(%device, dpadr, "beamNGSwitchVehicle();", "");
    moveMap.bindCmd(%device, dpadd, "bullettime.set(5)", ""); // This does NOT work
    moveMap.bindCmd(%device, dpadu, "bullettime.set(100)", ""); // Neither does this
    
    // Other
    moveMap.bindCmd(%device, btn_rt, "beamNGResetCamera();", "");
    moveMap.bindCmd(%device, btn_back, "beamNGCameraToggle();", "");
    
    Did I use the wrong names or something?
     
    #1 powerbuoy, Aug 17, 2013
    Last edited: Aug 19, 2013
  2. simon48

    simon48
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    203
    Try is:

    Code:
    moveMap.bindVLuaCmd(%device, "dpadu", "bullettime.set(100)", "");
    moveMap.bindVLuaCmd(%device, "dpadd", "bullettime.set(5)", "");
    
     
  3. powerbuoy

    powerbuoy
    Expand Collapse

    Joined:
    Aug 17, 2013
    Messages:
    9
    Awesome! That worked :) Now to figure out why... :p
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice