We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

SOLVED: Keyboard/mouse controls for apps in mobile browser?

Home Forums Programming SOLVED: Keyboard/mouse controls for apps in mobile browser?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #84845
    c4cc
    Customer

    For mobile devices (phones, tablets) to play this game on mobile browsers, how do I enable keyboard use for?

    Will javascript for pc/laptop keyboard/mouse input apply for mobile devices?

    Another problem is, Virtual Keyboard API is only available on chrome and edge.

    As I have released my trial browser game, if JavaScript for keyboard/mouse user input is also applicable to mobile devices as well, which JavaScript for mouse/keyboard is applicable to most, if not all major mobile web browsers like chrome, edge, firefox?

    How do I activate keyboard/mouse for apps when the webpage is accessed on mobile devices like phones or tablets?

    • This topic was modified 1 month, 3 weeks ago by c4cc.

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

    #84857
    c4cc
    Customer

    Will using feature available for android or mobile device enable keyboard inputs on such devices?

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

    #84870
    c4cc
    Customer

    If this webpage is accessed via mobile devices like phones, tablets, etc, I need to trigger the mobile browser keyboard via tapping an element until that element is either tapped again, or the webpage is reset.

        <button id="fullscreenBtn">fullscreen</button>
        <iframe id="myIframe" src="scene2.html" width="600" height="400"></iframe>

    I need that mobile browser keyboard to interract with the iframe on the html page, since that iframe is a mobile browser game.

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

    #84871
    c4cc
    Customer

    when the app is loading, sometimes, I press fullscreen icon, and when the app finishes loaded in fullscreen, then it’s slow. I notice this recently happens in Firefox and Edge

    AFAIK google chrome and opera don’t have this problem, when triggering fullscreen during loading, app runs as intended without being slow

    • This reply was modified 2 months ago by c4cc.

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

    #84974
    c4cc
    Customer

    On second thought guys, as my recent updates now has such a feature here’s how I solved the problem ATM:

    puzzles for general movement mechanics
    puzzles/javascript to detect fullscreen mode triggered before game loads

    puzzles for general movement mechanics
    movement speed stats depending on fullscreen or not, for desktop. Only mobile devices fullscreen speed stats are here.

    Touchscreen controls for game screen

    The HTML/CSS interface in game screen:

    puzzles for game speed stats – normal window

    HTML controls for game window

    HTML

    CSS

    puzzles for game speed stats – normal window

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.