예제 #1
0
 private void Context_KeyboardOSInputEvent(Framework.InputKey key)
 {
     if (key == Framework.InputKey.Back)
     {
         CloseApp();
     }
 }
예제 #2
0
 private void Context_KeyboardOSInputEvent(Framework.InputKey key)
 {
     if (key == Framework.InputKey.Up)
     {
         scroll.ScrollBy(8);
     }
     if (key == Framework.InputKey.Down)
     {
         scroll.ScrollBy(-8);
     }
     if (key == Framework.InputKey.Back)
     {
         CloseApp();
     }
 }
 private void Context_KeyboardOSInputEvent(Framework.InputKey key)
 {
     if (key == Framework.InputKey.Enter)
     {
         fp.OnJump();
         intro = false;
     }
     if (key == Framework.InputKey.Up || key == Framework.InputKey.Down)
     {
         Reset();
     }
     if (key == Framework.InputKey.Back)
     {
         CloseApp();
     }
 }
예제 #4
0
        private void Context_KeyboardOSInputEvent(Framework.InputKey key)
        {
            if (key == Framework.InputKey.Up && index < apps.Length - 1)
            {
                index++;
                SetAppIndex(index);
            }
            if (key == Framework.InputKey.Down && index >= 1)
            {
                index--;
                SetAppIndex(index);
            }

            if (key == Framework.InputKey.Enter)
            {
                //Launch
                context.LaunchApp(apps[index]);
            }
        }
예제 #5
0
        static StackObject *IsKey_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            Framework.InputKey rInputKey = (Framework.InputKey) typeof(Framework.InputKey).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            Framework.InputManager instance_of_this_method;
            instance_of_this_method = (Framework.InputManager) typeof(Framework.InputManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.IsKey(rInputKey);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }