Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › key mapping?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8952

    Christopher

    I’m looking over the platformer demo, specifically at the player, and I’m wondering why he jumps when I press up. I’m looking at this file http://felgo.com/doc/v-play-demos-platformer-qml-entities-player-qml/ I can see why he jumps but where are the buttons defined that call the jump function? If I wanted to change jumping from the up arrow to the space bar how could I?

    #8953

    Alex
    Felgo Team

    Hi,

    have a look at the TwoAxisController component in the GameScene.qml file.
    You can also add console.debug(actionName) in the onInputActionPressed signal handler to see what codes you have to check against when you want to use the space button instead.

    Cheers,
    Alex

    #8954

    Christopher

    Thank you!

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

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded