예제 #1
0
        private static int OnKeyboardToggle(IntPtr context, IntPtr keyboard, int toggle)
        {
            NowKeyboard nowKeyboard = (NowKeyboard)context;

            byte   flags = (byte)((toggle >> 16) & 0xFF);
            ushort code  = (ushort)(toggle & 0xFFFF);

            nowKeyboard.sharee.SendKeyboardEvent(flags, code);

            return(1);
        }
예제 #2
0
        private static int OnKeyboardOuput(IntPtr context, IntPtr keyboard, int output)
        {
            NowKeyboard nowKeyboard = (NowKeyboard)context;

            byte   flags = (byte)((output >> 16) & 0xFF);
            ushort code  = (ushort)(output & 0xFFFF);

            nowKeyboard.sharee.SendKeyboardEvent(flags, code);

            return(1);
        }