// Token: 0x060002D7 RID: 727 RVA: 0x0000EA08 File Offset: 0x0000CC08 internal static KeyEventArgsExt FromRawDataGlobal(CallbackData data) { IntPtr wparam = data.WParam; IntPtr lparam = data.LParam; KeyboardHookStruct keyboardHookStruct = (KeyboardHookStruct)Marshal.PtrToStructure(lparam, typeof(KeyboardHookStruct)); Keys keyData = KeyEventArgsExt.AppendModifierStates((Keys)keyboardHookStruct.VirtualKeyCode); int num = (int)wparam; bool isKeyDown = num == 256 || num == 260; bool isKeyUp = num == 257 || num == 261; return(new KeyEventArgsExt(keyData, keyboardHookStruct.Time, isKeyDown, isKeyUp)); }
// Token: 0x060002D6 RID: 726 RVA: 0x0000E990 File Offset: 0x0000CB90 internal static KeyEventArgsExt FromRawDataApp(CallbackData data) { IntPtr wparam = data.WParam; IntPtr lparam = data.LParam; int tickCount = Environment.TickCount; uint num = (uint)lparam.ToInt64(); bool flag = (num & 1073741824U) > 0U; bool flag2 = (num & 2147483648U) > 0U; Keys keyData = KeyEventArgsExt.AppendModifierStates((Keys)((int)wparam)); bool isKeyDown = !flag && !flag2; bool isKeyUp = flag && flag2; return(new KeyEventArgsExt(keyData, tickCount, isKeyDown, isKeyUp)); }