Inheritance: PointerInputModule
 static public int ShouldActivateModule(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         var ret = self.ShouldActivateModule();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
 static public int set_cancelButton(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         string v;
         checkType(l, 2, out v);
         self.cancelButton = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
    static public int set_cancelButton(IntPtr l)
    {
        UnityEngine.EventSystems.StandaloneInputModule o = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
        string v;

        checkType(l, 2, out v);
        o.cancelButton = v;
        return(0);
    }
    static public int set_verticalAxis(IntPtr l)
    {
        UnityEngine.EventSystems.StandaloneInputModule o = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
        string v;

        checkType(l, 2, out v);
        o.verticalAxis = v;
        return(0);
    }
    static public int set_inputActionsPerSecond(IntPtr l)
    {
        UnityEngine.EventSystems.StandaloneInputModule o = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
        float v;

        checkType(l, 2, out v);
        o.inputActionsPerSecond = v;
        return(0);
    }
    static public int set_allowActivationOnMobileDevice(IntPtr l)
    {
        UnityEngine.EventSystems.StandaloneInputModule o = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
        bool v;

        checkType(l, 2, out v);
        o.allowActivationOnMobileDevice = v;
        return(0);
    }
 private void CreateEventSystem()
 {
     m_objEventSystem = new GameObject();
     m_objEventSystem.name = "EventSystem";
     m_objEventSystem.layer = GameLayer.UI;
     m_objEventSystem.transform.SetParent(m_transRootCanvas, false);
     m_compEventSystem = m_objEventSystem.AddComponent<EventSystem>();
     m_compSIModule = m_objEventSystem.AddComponent<StandaloneInputModule>();
     m_compTIModule = m_objEventSystem.AddComponent<TouchInputModule>();
 }
Example #8
0
 static public int get_forceModuleActive(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         pushValue(l, self.forceModuleActive);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #9
0
 static public int Process(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         self.Process();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #10
0
 static public int get_horizontalAxis(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         pushValue(l, self.horizontalAxis);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #11
0
 static public int get_cancelButton(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.cancelButton);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #12
0
 static public int UpdateModule(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         self.UpdateModule();
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #13
0
 static public int get_allowActivationOnMobileDevice(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         pushValue(l, self.allowActivationOnMobileDevice);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #14
0
 static public int IsModuleSupported(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         var ret = self.IsModuleSupported();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #15
0
 static public int get_cancelButton(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         pushValue(l, self.cancelButton);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #16
0
 static public int DeactivateModule(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         self.DeactivateModule();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_allowActivationOnMobileDevice(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.allowActivationOnMobileDevice);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #18
0
 static public int get_inputActionsPerSecond(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.inputActionsPerSecond);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int IsModuleSupported(IntPtr l)
 {
     try{
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         System.Boolean ret = self.IsModuleSupported();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #20
0
 static public int set_cancelButton(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         string v;
         checkType(l, 2, out v);
         self.cancelButton = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #21
0
 static public int set_repeatDelay(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         float v;
         checkType(l, 2, out v);
         self.repeatDelay = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #22
0
 static public int set_forceModuleActive(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.forceModuleActive = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #23
0
 static public int ShouldActivateModule(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         var ret = self.ShouldActivateModule();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #24
0
 static int DeactivateModule(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.EventSystems.StandaloneInputModule obj = (UnityEngine.EventSystems.StandaloneInputModule)ToLua.CheckObject <UnityEngine.EventSystems.StandaloneInputModule>(L, 1);
         obj.DeactivateModule();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #25
0
 static public int set_submitButton(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         string v;
         checkType(l, 2, out v);
         self.submitButton = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #26
0
 static public int set_inputActionsPerSecond(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         float v;
         checkType(l, 2, out v);
         self.inputActionsPerSecond = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #27
0
 static public int set_allowActivationOnMobileDevice(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.allowActivationOnMobileDevice = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #28
0
 static public int set_inputActionsPerSecond(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         float v;
         checkType(l, 2, out v);
         self.inputActionsPerSecond = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #29
0
 static public int set_submitButton(IntPtr l)
 {
     try {
         UnityEngine.EventSystems.StandaloneInputModule self = (UnityEngine.EventSystems.StandaloneInputModule)checkSelf(l);
         string v;
         checkType(l, 2, out v);
         self.submitButton = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #30
0
 static int ShouldActivateModule(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.EventSystems.StandaloneInputModule obj = (UnityEngine.EventSystems.StandaloneInputModule)ToLua.CheckObject <UnityEngine.EventSystems.StandaloneInputModule>(L, 1);
         bool o = obj.ShouldActivateModule();
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
        // Token: 0x06009884 RID: 39044 RVA: 0x00373160 File Offset: 0x00371360
        public override void ActivateModule()
        {
            StandaloneInputModule component = base.GetComponent <StandaloneInputModule>();

            if (component && component.enabled)
            {
                Debug.LogError("StandAloneInputSystem should not be used with the GamePadInputModule, please remove it from the Event System in this scene or disable it when this module is in use");
            }
            base.ActivateModule();
            GameObject gameObject = base.eventSystem.currentSelectedGameObject;

            if (gameObject == null)
            {
                gameObject = base.eventSystem.firstSelectedGameObject;
            }
            base.eventSystem.SetSelectedGameObject(gameObject, this.GetBaseEventData());
        }
Example #32
0
        protected virtual void Update()
        {
            if (EventSystem.current == null)
            {
                return;
            }

            if (currentStandaloneInputModule == null)
            {
                if (EventSystem.current == null)
                {
                    // Auto spawn an Event System from the prefab
                    GameObject prefab = Resources.Load<GameObject>("EventSystem");
                    if (prefab != null)
                    {
                        GameObject go = Instantiate(prefab) as GameObject;
                        go.name = "EventSystem";
                    }
                }

                currentStandaloneInputModule = EventSystem.current.GetComponent<StandaloneInputModule>();
            }

            if (Input.GetButtonDown(currentStandaloneInputModule.submitButton) ||
                (cancelEnabled && Input.GetButton(currentStandaloneInputModule.cancelButton)))
            {
                SetNextLineFlag();
            }

            switch (clickMode)
            {
            case ClickMode.Disabled:
                break;
            case ClickMode.ClickAnywhere:
                if (Input.GetMouseButtonDown(0))
                {
                    SetNextLineFlag();
                }
                break;
            case ClickMode.ClickOnDialog:
                if (dialogClickedFlag)
                {
                    SetNextLineFlag();
                    dialogClickedFlag = false;
                }
                break;
            }

            if (ignoreClickTimer > 0f)
            {
                ignoreClickTimer = Mathf.Max (ignoreClickTimer - Time.deltaTime, 0f);
            }

            if (ignoreMenuClicks)
            {
                // Ignore input events if a Menu is being displayed
                if (MenuDialog.activeMenuDialog != null && 
                    MenuDialog.activeMenuDialog.gameObject.activeInHierarchy &&
                    MenuDialog.activeMenuDialog.DisplayedOptionsCount > 0)
                {
                    dialogClickedFlag = false;
                    nextLineInputFlag = false;
                }
            }

            // Tell any listeners to move to the next line
            if (nextLineInputFlag)
            {
                IDialogInputListener[] inputListeners = gameObject.GetComponentsInChildren<IDialogInputListener>();
                foreach (IDialogInputListener inputListener in inputListeners)
                {
                    inputListener.OnNextLineEvent();
                }
                nextLineInputFlag = false;
            }
        }