Example #1
0
 private void HandleAxisStopUsed(IntellGamePad gpad, IntellGamePad.Buttons button, IntellGamePad.AxisValue values)
 {
     Debug.LogFormat("Gamepad {0} axis {1} stopped use, values: {2},{3}", gpad.ID, button, values.X, values.Y);
 }
Example #2
0
 private void HandleAxisStopUsed(IntellGamePad gpad, IntellGamePad.Buttons button, IntellGamePad.AxisValue values)
 {
     Debug.LogFormat("Gamepad {0} axis {1} stopped use, values: {2},{3}", gpad.ID, button, values.X, values.Y);
     if (button == IntellGamePad.Buttons.LeftStick && gpad.ID == 0 && GameManager.singleton.tm.isTurn == true)
     {
         buttonCheck = (int)button;
         xCheck      = values.X;
         yCheck      = values.Y;
     }
     else if (button == IntellGamePad.Buttons.LeftStick && gpad.ID == 1 && GameManager.singleton.tm.isTurn == false)
     {
         buttonCheck = (int)button;
         xCheck      = values.X;
         yCheck      = values.Y;
     }
 }