Input editor

Discussion in 'Ideas and Suggestions' started by gamerpaddy, Jul 13, 2014.

  1. gamerpaddy

    gamerpaddy
    Expand Collapse

    Joined:
    Jun 21, 2014
    Messages:
    3
    Hello, will there be an input editor like in every other game someday?
    "Just click on a field (example throttle) and push the analog button (pedal or something) you want, without big editing files and testing around"

    i dont get it with the inputmaps, i followed a tutorial, many posts in this forum but i cant get my DIY controller set working.
    it allways using the keyboard as default.

    my .cs file is called 80362341000000000000504944564944.inputmap.cs and its located at beamng.drive folder/scripts/client/inputmaps
    the contents are:
    Code:
    // Product Name: DIY WHEEL
    // GUID: {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
    // axes: 5^X^S^V^Y^S
     
    //%device = "{745a17a0-74d3-11d0-b6fe-00a0c90f57da}-" @ %joyNum;  
    %device = "joystick" @ %joyNum; 
     
    // 0 deadzone
    $gp_deadzone = "-0.15 0.15"; 
    
    // camera
    moveMap.bind(%device, button0, joystickYaw);
    moveMap.bind(%device, button1, joystickPitch);
    
    // movement
    moveMap.bind(%device, xaxis, joy_steer);
    moveMap.bind(%device, slider,"I", brake);
    moveMap.bind(%device, rzaxis, "I", accelerate);
    moveMap.bind(%device, rxaxis, "I", clutch);
    
    
    moveMap.bind(%device, button11, toggleShifterMode);
    
    // paddle - left
    moveMap.bind(%device, button2, shiftDown);
    // paddle - right
    moveMap.bind(%device, button10, shiftUp);
    
    // gears
    moveMap.bindCmd(%device, button15, "shiftToGear(-1);", "shiftToGear(0);");
    moveMap.bindCmd(%device, button24, "shiftToGear(0);", "shiftToGear(0);");
    moveMap.bindCmd(%device, button16,  "shiftToGear(1);",  "shiftToGear(0);");
    moveMap.bindCmd(%device, button17,  "shiftToGear(2);",  "shiftToGear(0);");
    moveMap.bindCmd(%device, button18, "shiftToGear(3);",  "shiftToGear(0);");
    moveMap.bindCmd(%device, button19, "shiftToGear(4);",  "shiftToGear(0);");
    moveMap.bindCmd(%device, button20, "shiftToGear(5);",  "shiftToGear(0);");
    moveMap.bindCmd(%device, button21, "shiftToGear(6);",  "shiftToGear(0);");
    
    
    moveMap.bindCmd(%device, button4, "beamNGResetPhysics();", "");
    //moveMap.bindCmd(%device, button3, "beamNGTogglePhysics();", "");
    moveMap.bind(%device, button13, parkingbrake_toggle);
    //moveMap.bindCmd(%device, button5, "beamNGSwitchVehicle();", "");
    //moveMap.bindCmd(%device, button6, "beamNGZoom(-1);", "");
    //moveMap.bindCmd(%device, button7, "beamNGZoom(1);", "");
    //moveMap.bindCmd(%device, button8, "beamNGResetCamera();", "");
    //moveMap.bindCmd(%device, button9, "beamNGCameraToggle();", "");
    //moveMap.bind(%device, btn_back, beamNGControl);
    moveMap.bind(%device, button3, toggleFirstPerson);
    
    echo("arduino leonardo controller loaded");
    No key on controller is working ingame.

    Code:
    593.716742| - Product Name: Arduino Leonardo
    593.716771| - Product ID: 8036
    593.716799| - Vendor ID: 2341
    593.716827| - GUID: {80362341-0000-0000-0000-504944564944}
    593.716918| - 42 objects: button0 (button), button1 (button), button2 (button), button3 (button), button4 (button), button5 (button), button6 (button), button7 (button), button8 (button), button9 (button), button10 (button), button11 (button), button12 (button), button13 (button), button14 (button), button15 (button), button16 (button), button17 (button), button18 (button), button19 (button), button20 (button), button21 (button), button22 (button), button23 (button), button24 (button), button25 (button), button26 (button), button27 (button), button28 (button), button29 (button), button30 (button), button31 (button), rzaxis (axis), slider (axis), backspace (pov), rzaxis (axis), ryaxis (axis), rxaxis (axis), zaxis (axis), yaxis (axis), xaxis (axis)
    593.717013|  - trying to load keyboard mapping: scripts/client/inputmaps/custom/keyboard.inputmap.cs - file not existing
    593.717093|  - trying to load mapping via VendorID/ProductID: scripts/client/inputmaps/custom/80362341.inputmap.cs - file not existing
    593.718303|arduino leonardo controller loaded
    593.718343|  - trying to load mapping via name: scripts/client/inputmaps/custom/arduinoleonardo.inputmap.cs - SUCCESSFUL
    593.718427|  - trying to load keyboard mapping: vehicles/EvoIX/inputmaps/keyboard.inputmap.cs - file not existing
    593.718486|  - trying to load mapping via VendorID/ProductID: vehicles/EvoIX/inputmaps/80362341.inputmap.cs - file not existing
    593.718546|  - trying to load mapping via name: vehicles/EvoIX/inputmaps/arduinoleonardo.inputmap.cs - file not existing
    593.718582| *** loading input map DONE ***
     
  2. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Hello, will there be a newcomer that uses the search button someday?



    /sarcasm


    Its been asked about a gazillion times now. It is planned, but it isnt really a high priority. Ultimately inputs can be altered through a text editor and there are more important issues to be worrying about.
     
  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