Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 1 Support › Connect Button onPressed to TwoAxisController

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #4422


    Hi there,

    i try to connect my Custom-Button with an pressed-signal to a twoaxiscontroller of my object.

    two difficulties:

    1.) i want to use keyboard as well as the button to control the object

    2.) how gets the button connected to the twoaxiscontroller? i tried via the inputActionsToKeyCode function, as i do this with the keys successfully.


    my Button looks very similar to the Button in the examples, except for the additional signals (and other colors ;))

    my object holds the twoaxiscontroller.

    all i want is to put 3 buttons to a HUD and let them control the object.

    i also thought about using the joystick, but its not possible to turn and accelerate at the same time at full speed, so i use a multitoucharea in which those three buttons are located.


    Core Question: how do i connect the Buttons to the object’s twoAxisController?






    Felgo Team


    please have a look at the CarChallenge demo, where we support 2 input methods as well: with a virtual joystick and keyboard. The demo shows how to connect these components.

    Cheers, Chris

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.