// PUBLIC STATIC

        // PRIVATE
        /// <summary>
        /// Do update user interface input.
        ///
        /// NOTE: We get DownEnter and DownExit
        ///
        /// NOTE: We interpolate and SOMETIMES send DownStay
        ///
        ///
        /// </summary>
        /// <param name="aKeyCode">A key code.</param>
        /// <param name="aUIInputEventType">A user interface input event type.</param>
        protected void _doUpdateUIInput(KeyCode aKeyCode, UIInputEventType aUIInputEventType)
        {
            //CHECK OLD DATA
            UIInputVO newToSendUIInputVO = new UIInputVO(aKeyCode, aUIInputEventType);

            //STORE *ONLY* MOST RECENT PER KEYCODE
            _lastInputVOByKeycode_dictionary[newToSendUIInputVO.keyCode] = (newToSendUIInputVO);

            //ALWAYS SEND
            uiInputChangedSignal.Dispatch(newToSendUIInputVO);
        }
Esempio n. 2
0
		// PUBLIC STATIC
		
		// PRIVATE
		
		// PRIVATE STATIC
		
		//--------------------------------------
		//  Methods
		//--------------------------------------
		
		
		///////////////////////////////////////////////////////////////////////////
		///////////////////////////////////////////////////////////////////////////
		///			CONSTRUCTOR / DESTRUCTOR
		///////////////////////////////////////////////////////////////////////////
		///////////////////////////////////////////////////////////////////////////
		///<summary>
		///	 Constructor
		///</summary>
		public UIInputVO (KeyCode aKeyCode, UIInputEventType aUIInputEventType)
		{
			keyCode 			= aKeyCode;
			uiInputEventType 	= aUIInputEventType;
			
		}
		// PUBLIC STATIC
		
		// PRIVATE
		/// <summary>
		/// Do update user interface input.
		/// 
		/// NOTE: We get DownEnter and DownExit
		/// 
		/// NOTE: We interpolate and SOMETIMES send DownStay using _doProcessDownStayEvents
		/// 
		/// 
		/// </summary>
		/// <param name="aKeyCode">A key code.</param>
		/// <param name="aUIInputEventType">A user interface input event type.</param>
		protected void _doUpdateUIInput (KeyCode aKeyCode, UIInputEventType aUIInputEventType )
		{

			//CHECK OLD DATA
			UIInputVO newToSendUIInputVO 		= new UIInputVO (aKeyCode, aUIInputEventType);

			//STORE *ONLY* MOST RECENT PER KEYCODE
			_lastInputVOByKeycode_dictionary[newToSendUIInputVO.keyCode] = (newToSendUIInputVO);

			//ALWAYS SEND
			uiInputChangedSignal.Dispatch (newToSendUIInputVO);
			
		}
Esempio n. 4
0
        // PUBLIC STATIC

        // PRIVATE

        // PRIVATE STATIC

        //--------------------------------------
        //  Methods
        //--------------------------------------


        ///////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////
        ///			CONSTRUCTOR / DESTRUCTOR
        ///////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////
        ///<summary>
        ///	 Constructor
        ///</summary>
        public UIInputVO(KeyCode aKeyCode, UIInputEventType aUIInputEventType)
        {
            keyCode          = aKeyCode;
            uiInputEventType = aUIInputEventType;
        }