GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Touch Pressed doesn't work on cordova windows phone.

Hey Guys, all good ?

I'm trying to publish my game on Windows Phone but the touch command doesn't work, someone know why ? On Android work perfectly.

My Steps:
I made my game as HTML5 app and use cordova to generate the Windows universal app. Then, I installed him on Windows Phone using the "Windows Phone Application Deployment".

Comments

  • HopscotchHopscotch Posts: 2,782Member, PRO

    Yes, there are problems with GS reacting to Touch-Pressed, -Down and -Released under HTML5.

    Some bugs regarding this have been submitted to the bug-tracker, but not resolved yet.

    In the meantime you will have to find a workaround. There are different causes for the problem, some are related to scene scaling, others are caused by the fact that the mouse state does not get cleared.

  • SocksSocks London, UK.Posts: 12,822Member

    @Hopscotch said:
    There are different causes for the problem, some are related to scene scaling . . .

    In theory Raw mouse position x and y should account for scene scaling, it works absolutely fine, as it should, in Creator, but unfortunately doesn't really work on iDevices, but maybe it's worth trying on a Windows Phone ?

    I wish it was sorted out as it'd be really really useful for a whole range of issues.

  • FabioCarvalhoFabioCarvalho BrazilPosts: 8Member, PRO

    @Socks said:

    @Hopscotch said:
    There are different causes for the problem, some are related to scene scaling . . .

    In theory Raw mouse position x and y should account for scene scaling, it works absolutely fine, as it should, in Creator, but unfortunately doesn't really work on iDevices, but maybe it's worth trying on a Windows Phone ?

    I wish it was sorted out as it'd be really really useful for a whole range of issues.

    I agree.
    I want to up my game to WP and W10, but, i already tried a lot of things to make "touch" work, and nothing it happens. :( I think i will need make a joystick or something

  • HopscotchHopscotch Posts: 2,782Member, PRO

    Hey @Socks,
    unfortunately it is not as simple as that. It can occur that after scaling, or the window losing focus, the active touch area caught by GS, is somewhere in the upper left hand corner. Raw or not.

  • SocksSocks London, UK.Posts: 12,822Member

    @Hopscotch said:
    . . . it is not as simple as that . . .

    Ah ! I see ! :o

Sign In or Register to comment.