python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Operator && cannot be applied to operands of type 'bool' and 'TouchPhase'
Noob here... I am trying to understand why my compiler complains about this:
if(Input.touchCount >0 && Input.GetTouch(0).phase = TouchPhase.Moved) { ... }
I am following the tutorial here,...
Matthew
Votes: 0
Answers: 1
(Unity 2d Mobile) I need to differentiate between button touch and screen touch
Im making a mobile 2d game. I have a button to shoot lasers on the right bottom of the screen. And i do have a jetpack script that when touched on screen it add force to make the player go up. But whe...
mr.robpot
Votes: 0
Answers: 2
How to remove the delay until the :active class is added to a button on mobile?
On touch screens, when tapping a <button>, there is a delay of about 300 milliseconds until the :active style is applied to the button. This results in an unresponsive feeling.
In the demo belo...
Thomas
Votes: 0
Answers: 0
CMenu not receiving Windows touch messages
In my application when I receive an ON_WM_RBUTTONDOWN() message in a certain window I create a CMenu, populated with some items, and then displayed with TrackPopupMenu(xxx). It has no other interactio...
Charlie Hermans
Votes: 0
Answers: 1