Tizen and back button behaviour

0 favourites
  • 4 posts
From the Asset Store
Helping streamers give their viewers more excitement.
  • Hi,

    We have been trying to implement the back button behaviour in Tizen but there seems to be a problem with it being overridden by the default Tizen back button behaviour.

    Here is a capx as an example:

    dl.dropboxusercontent.com/u/41218343/BackButtonBug.capx

    When running the project in the Tizen IDE the yellow square should change to a red square when you press the back button. This is what is expected and indeed what happens but the application also displays the following dialogue:

    <img src="https://dl.dropboxusercontent.com/u/40935009/web%20sim%20screenshot.PNG" border="0" />

    Has anyone else come across this issue? Is there some way of removing the default Tizen behaviour?

    EDIT: Exported using r147.

    RESOLVED: We resolved this by removing the OR and creating two separate events. This is a possible bug?

    Many thanks

    Simon

  • We just wanted to add here the easiest way to add the required button functionality. You can add this:

        document.addEventListener('tizenhwkey', function(e) {

        alert(e.keyName);

            if(e.keyName == "back"){

               tizen.application.getCurrentApplication().exit();

            }

            if(e.KeyName == "menu"){

            alert("MENU");

            }

        });

  • appbackr

    Given that we do not generally have access to the actual javascript code when developing games using C2, where would we put the code snippet that you posted into the exported C2 project?

    Any in case, the issue has been worked around for C2 games developers.

    Many thanks for your input though.

    Simon

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • simwhi - post a bug report about the behavior in an OR block and I'll take a look.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)