Jump to content

Search the Community

Showing results for tags 'virtual gamepad'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi Can I use divs as virtual controls? I have a div called "leftButton" and I want you to hold down the function "turnLeft()" is executed.The idea is that the vehicle turn left while the div is pressed. URL Test var interval; $("#leftButton").mousedown(function () { interval = setInterval(function() { game.state.states.main.turnLeft(); }, 50); }).mouseup(function () { clearInterval(interval); });On mobiles, currently the operation is not correct, since a delay or the car continues to rotate indefinitely occurs.Desktop works by pressing the div with the mouse.My goal is to use divs for the interface (Buttons, records, lives, etc.), around the game screen. Kind regards PD. Sorry for my English language
×
×
  • Create New...