Beispiel #1
0
        public int GetIntTriggerDown(string esseGatilho)
        {
            int   retorno = 0;
            float val     = RawCustomAxis.GetAxis(esseGatilho, IndexOfControl, N3DS_KeysDic.Instance);

            retorno = VerificaValorSeZerado(esseGatilho, val, 0.1f);

            return(retorno);
        }
Beispiel #2
0
        public Vector3 DirectionalVector()
        {
            float h = Mathf.Clamp(RawCustomAxis.GetAxis("horizontal", IndexOfControl, N3DS_KeysDic.Instance)
                                  + RawCustomAxis.GetAxis("HDpad", IndexOfControl, N3DS_KeysDic.Instance), -1, 1);
            float v = Mathf.Clamp(RawCustomAxis.GetAxis("vertical", IndexOfControl, N3DS_KeysDic.Instance)
                                  + RawCustomAxis.GetAxis("VDpad", IndexOfControl, N3DS_KeysDic.Instance), -1, 1);

            return(VetorDirecao(h, v));
        }
 public float GetAxis(string esseGatilho)
 {
     esseGatilho = KeyStringDict.GetStringForAxis(esseGatilho);
     return(RawCustomAxis.GetAxis(esseGatilho, IndexOfControl, KeyboardKeysDict.Instance));
     //Input.GetAxisRaw("joy " + IndexOfControl + " " + esseGatilho);
 }
Beispiel #4
0
 public float GetAxis(string esseGatilho)
 {
     esseGatilho = KeyStringDict.GetStringForAxis(esseGatilho);
     return(RawCustomAxis.GetAxis(esseGatilho, (int)Controlador.N3DS, N3DS_KeysDic.Instance));
 }