ftguy2018 Posted October 6, 2018 Share Posted October 6, 2018 How do we do to have user entering some input numbers on mobile ? I have designed my own input field but how do we query for the embedded keyboard to show up on mobile devices ? Is there any function in the engine ? Please kindly advise. Thank you, Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted October 9, 2018 Share Posted October 9, 2018 I didn't get a chance to play around with code to look at this, so I can only give a few suggestions on a few things to try. I think these link should be helpful: (This one says that you need an html <input> tag to show the keybard. https://stackoverflow.com/questions/6837543/show-virtual-keyboard-on-mobile-phones-in-javascript (general html for showing/hiding getting input) https://stackoverflow.com/questions/21499402/how-to-use-a-textbox-with-html5-canvas-and-hide-it-when-not-needed And this link has the html5 markup for making the input a number only keyboard. e.g. <input type="number" pattern="[0-9]*"> Hope this helps get you going. I don't think there is a built-in Panda feature for this, so you'll have to add your own html to index.html, and write a few functions to help you out. Good luck! fatboyarming 1 Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted October 13, 2018 Author Share Posted October 13, 2018 Thank you, I believe it will be nice if the engine could provide a function to trigger the mobile keyboard and then connect the keys typed to the current keyboard engine....for the sake of code portability. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.