- Home /
Detecting cross platform input?
I took this from the sample Free look camera script, but it's just green texting / noting the Mouse X and Mouse Y. Any ideas? Thanks in advance!
// Read the user input
#if CROSS_PLATFORM_INPUT
var x = CrossPlatformInput.GetAxis ("Xbox360ControllerRightX");
var y = CrossPlatformInput.GetAxis ("Xbox360ControllerRightY");
#else
var x = Input.GetAxis ("Mouse X");
var y = Input.GetAxis ("Mouse Y");
#endif
Comment