Beispiel #1
0
        public EventKeyDown(IntPtr EventInfo)
        {
            EventKeyDown e = new EventKeyDown();

            e         = (EventKeyDown)Marshal.PtrToStructure(EventInfo, typeof(EventKeyDown));
            keyname   = e.keyname;
            data      = e.data;
            modifiers = e.modifiers;
            locks     = e.locks;
            key       = e.key;
            str       = e.str;
            compose   = e.compose;
        }
Beispiel #2
0
	   public EventKeyDown(IntPtr EventInfo)
	   {
		   EventKeyDown e = new EventKeyDown();
		   e = (EventKeyDown)Marshal.PtrToStructure(EventInfo, typeof(EventKeyDown));
		   keyname = e.keyname;
		   data = e.data;
		   modifiers = e.modifiers;
		   locks = e.locks;
		   key = e.key;
		   str = e.str;
		   compose = e.compose;
	   }