Forums

OverviewV-Play 1 Support › Connect Button onPressed to TwoAxisController

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

    Thomas

    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?

     

    Cheers,

    TS

     

    #4442

    Christian
    V-Play Team

    Hi,

    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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support