I have a draggable inventory in my game “Conquer the World”, I use custom dragging so basically my code runs like this
- I detect a button1Down, and then set the CurrentButton variable to the button that was clicked
- I hook mouseButton1Up to my OnButtonRelease function
- In renderStepped, I move the position of the button to the position of the mouse
The problem is that this works perfectly on both PC and Android mobile devices, but something about apple devices prevents it from functioning correctly. When an apple user releases the touch it doesn’t register as a Button1Up. Can anyone offer some advice or healthy alternatives that wouldn’t involve a complete rewrite of my nifty dragging system?