But yea that chatgpt something else thats a double edged sword with no handle--> As long as you don't ask it the important questions.Click image for larger version

Name:	Annotation 2023-01-26 004224.jpg
Views:	34
Size:	43.0 KB
ID:	10263​ It seems to be straight, can't wait to try what it just the way it told me to do my gamepad code in my game-->, but I still can't compile my game into a .exe so I think I will try to find the right questions for it seems if this works.
------------------------------------------------------------------------> My prompt--and it's response.

How do I make the PC gamepad's left joystick control a mouse cursor for my Unreal engine 4.27 game?

To make the left joystick of a PC gamepad control a mouse cursor in an Unreal Engine 4.27 game, you will need to create a custom input mapping and then implement it in your game's code. Here are the general steps you can follow:
  1. Open the Unreal Engine editor and go to the Edit > Project Settings > Engine > Input menu.
  2. In the Input section, click on the + button to create a new input mapping.
  3. Give the new mapping a name, such as "GamepadMouseControl".
  4. In the Action Mappings section, create a new action mapping for the left joystick, such as "MoveMouse".
  5. In the Axis Mappings section, create a new axis mapping for the left joystick X and Y axes, such as "MouseX" and "MouseY".
  6. Now that you have created the custom input mapping, you will need to implement it in your game's code. You can do this by creating a custom PlayerController class and overriding the PlayerInput function. In the PlayerInput function, you can check for the "MoveMouse" action mapping and use the "MouseX" and "MouseY" axis mappings to move the mouse cursor.
  7. Make sure to assign the custom PlayerController class to your player character in the Unreal Engine editor.
  8. Compile and run the game to test the gamepad mouse control.

Keep in mind that this is a general guide, you may need to adjust the code depending on the specific requirements of your game and the way you want the cursor to move. It's also advisable to consult Unreal Engine documentation for more detailed instructions and information.