Giter Site home page Giter Site logo

Comments (7)

alexguirre avatar alexguirre commented on June 12, 2024 1

Yeah, recompiling is the only way for now. Will probably add an .ini file in the next version to allow to change the default game controls.

To recompile you need Visual Studio 2019 with .NET Framework 4.7.2, download this repository, open Source/RAGENativeUI.sln in Visual Studio, modify the SetKey calls quoted with the cellphone game controls and build it. It should create a new RAGENativeUI.dll file.

These are the game controls used before 1.7:

SetKey(Common.MenuControls.Up, GameControl.CellphoneUp);
SetKey(Common.MenuControls.Up, GameControl.CursorScrollUp);
SetKey(Common.MenuControls.Down, GameControl.CellphoneDown);
SetKey(Common.MenuControls.Down, GameControl.CursorScrollDown);
SetKey(Common.MenuControls.Left, GameControl.CellphoneLeft);
SetKey(Common.MenuControls.Right, GameControl.CellphoneRight);
SetKey(Common.MenuControls.Select, GameControl.FrontendAccept);
SetKey(Common.MenuControls.Back, GameControl.CellphoneCancel);
SetKey(Common.MenuControls.Back, GameControl.FrontendPause);

from ragenativeui.

xXFireBunnyXx avatar xXFireBunnyXx commented on June 12, 2024

i would love for a way to change the keybinds as well because currently its a problem for me

from ragenativeui.

alexguirre avatar alexguirre commented on June 12, 2024

In 1.7 the default controls changed from CellphoneUp/Down/Left/Right to FrontendUp/Down/Left/Right which are the controls used by the original game menus. I didn't notice that these frontend controls couldn't be rebinded in the game settings, but the cellphones ones could, I guess that's the issue? Because by default both are binded to the arrow keys.

At the moment, the only way to change the defaults is to recompile with different GameControls here:

SetKey(Common.MenuControls.Up, GameControl.FrontendUp, 2);
SetKey(Common.MenuControls.Up, GameControl.CursorScrollUp, 2);
SetKey(Common.MenuControls.Down, GameControl.FrontendDown, 2);
SetKey(Common.MenuControls.Down, GameControl.CursorScrollDown, 2);
SetKey(Common.MenuControls.Left, GameControl.FrontendLeft, 2);
SetKey(Common.MenuControls.Right, GameControl.FrontendRight, 2);
SetKey(Common.MenuControls.Select, GameControl.FrontendAccept, 2);
SetKey(Common.MenuControls.Back, GameControl.FrontendCancel, 2);
SetKey(Common.MenuControls.Back, GameControl.FrontendPause, 2);
SetKey(Common.MenuControls.Back, GameControl.CursorCancel, 2);

from ragenativeui.

crslegend avatar crslegend commented on June 12, 2024

hi @alexguirre! thanks for your reply. so meaning there is no way currently for me to rebind the keys solely from GTA V menu or through any config files? cus im not really sure how to go about recompiling the gamecontrols with the code quoted

from ragenativeui.

crslegend avatar crslegend commented on June 12, 2024

Hi @alexguirre, I tried to modify and compile, but I am getting compilation errors at these few lines

Screenshot 2021-07-18 113728

image

The errors seems to be coming from lines 271 and 272. Am I doing it correctly?

from ragenativeui.

alexguirre avatar alexguirre commented on June 12, 2024

Forgot to say it needs C# 9, try updating Visual Studio to the latest version

from ragenativeui.

crslegend avatar crslegend commented on June 12, 2024

Its working now! thanks alot!

from ragenativeui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.