You need to check the axes to see if the user pressed it far enough left, right, up or down. The basic architecture consists of a computer running KSP as well as a controller that can send inputs to KSP (to launch the rocket, increase the throttle, retract the landing gear, etc.) and receive information from KSP to be displayed (speed, altitude, etc.). Im using an XBOX ONE controller for my game, Ive set up the input, however my issue is with the Dpad itself. But there is no "Press dpad button left". 2 Ive looked around and had no luck, so I want to ask here. The one caveat is I'm not 100% sure if the names of the axes are correct here, you'll have to check your input settings. The parts we specifically care about are these float x = Input.GetAxis("DPad X") It lets you have the familiar feel and controls of a game-console gamepad on your ROG Phone, whether you use it in standalone Gamepad mode or docked in Handheld mode. It physically resembles a Playstation controller, but the buttons are mapped like an XBox controller. You need to check what direction, if any, each dpad axis is pointing and then do something. ROG Kunai 3 Gamepad for ROG Phone 6 makes your mobile-gaming experience even more immersive, with a modular design that opens up new ways to play. Here's my controller layout with a Logitech F710. I haven’t tried it yet, but Logitech is one of the logos when you start up the game, so I imagine there’s support for their gamepads and HOTAS. If you want to do something specific when a D-pad direction is pressed, you can do so the same way that you would detect if a player had pushed their thumbsticks up, or left, or right, or down. I think I saw it has no native support, youd need to bind keys or some such. But the Dpad is limited to axises and won't actually work as individual buttons.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |