playMaker

Author Topic: UI get last pointer position, Not getting Position ? [SOLVED]  (Read 886 times)

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 69
UI get last pointer position, Not getting Position ? [SOLVED]
« on: January 14, 2020, 10:47:59 PM »
I tried this for making an inventory, But It seams to not be getting any Coordinates.

Do I need to use this with another action for it to work ?. Its always displaying 0.0.
« Last Edit: January 16, 2020, 08:03:39 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: UI get last pointer position, Not getting Position ?
« Reply #1 on: January 15, 2020, 01:55:48 AM »
Hi,

 I think it only works with touch on mobiles and touch screen devices, can you confirm you are on a touch screen?

 also, when are you requesting this? it has to come from a touch input callback, else indeed there might not be any current pointer in the system to get its position.

Bye,

 Jean

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 69
Re: UI get last pointer position, Not getting Position ?
« Reply #2 on: January 15, 2020, 09:53:17 AM »
O, thanks for reply, I was trying to use it with mouse pointer, My game is PC.

But never mind I decided to just go with static menu at the moment.
« Last Edit: January 15, 2020, 08:44:41 PM by Stain Corb »