Esempio n. 1
0
		public static TermKeyResult termkey_getkey_force(IntPtr termKey, ref TermKeyKey key) {
			if (IntPtr.Size == 4) {
				TermKeyKey32 temp = new TermKeyKey32();
				TermKeyResult result = termkey_getkey_force32(termKey, ref temp);
				key.type = temp.type;
				key.code = temp.code;
				key.modifiers = temp.modifiers;
				key.utf8_0 = temp.utf8_0;
				key.utf8_1 = temp.utf8_1;
				key.utf8_2 = temp.utf8_2;
				key.utf8_3 = temp.utf8_3;
				key.utf8_4 = temp.utf8_4;
				key.utf8_5 = temp.utf8_5;
				key.utf8_6 = temp.utf8_6;
				return result;
			} else {
				TermKeyKey64 temp = new TermKeyKey64();
				TermKeyResult result = termkey_getkey_force64(termKey, ref temp);
				key.type = temp.type;
				key.code = temp.code;
				key.modifiers = temp.modifiers;
				key.utf8_0 = temp.utf8_0;
				key.utf8_1 = temp.utf8_1;
				key.utf8_2 = temp.utf8_2;
				key.utf8_3 = temp.utf8_3;
				key.utf8_4 = temp.utf8_4;
				key.utf8_5 = temp.utf8_5;
				key.utf8_6 = temp.utf8_6;
				return result;
			}
		}
Esempio n. 2
0
 public static TermKeyResult termkey_getkey_force(IntPtr termKey, ref TermKeyKey key)
 {
     if (IntPtr.Size == 4)
     {
         TermKeyKey32  temp   = new TermKeyKey32();
         TermKeyResult result = termkey_getkey_force32(termKey, ref temp);
         key.type      = temp.type;
         key.code      = temp.code;
         key.modifiers = temp.modifiers;
         key.utf8_0    = temp.utf8_0;
         key.utf8_1    = temp.utf8_1;
         key.utf8_2    = temp.utf8_2;
         key.utf8_3    = temp.utf8_3;
         key.utf8_4    = temp.utf8_4;
         key.utf8_5    = temp.utf8_5;
         key.utf8_6    = temp.utf8_6;
         return(result);
     }
     else
     {
         TermKeyKey64  temp   = new TermKeyKey64();
         TermKeyResult result = termkey_getkey_force64(termKey, ref temp);
         key.type      = temp.type;
         key.code      = temp.code;
         key.modifiers = temp.modifiers;
         key.utf8_0    = temp.utf8_0;
         key.utf8_1    = temp.utf8_1;
         key.utf8_2    = temp.utf8_2;
         key.utf8_3    = temp.utf8_3;
         key.utf8_4    = temp.utf8_4;
         key.utf8_5    = temp.utf8_5;
         key.utf8_6    = temp.utf8_6;
         return(result);
     }
 }
Esempio n. 3
0
 private static extern TermKeyResult termkey_getkey_force32(IntPtr termKey, ref TermKeyKey32 key);
Esempio n. 4
0
 private static extern TermKeyResult termkey_interpret_mouse32(IntPtr termKey, ref TermKeyKey32 key,
                                                               out TermKeyMouseEvent ev,
                                                               out int button,
                                                               out int line,
                                                               out int col);
Esempio n. 5
0
        public static TermKeyResult termkey_interpret_mouse(IntPtr termKey, ref TermKeyKey key,
                                                            out TermKeyMouseEvent ev,
                                                            out int button,
                                                            out int line,
                                                            out int col)
        {
            if (IntPtr.Size == 4)
            {
                TermKeyKey32 temp = new TermKeyKey32();
                temp.type      = key.type;
                temp.code      = key.code;
                temp.modifiers = key.modifiers;
                temp.utf8_0    = key.utf8_0;
                temp.utf8_1    = key.utf8_1;
                temp.utf8_2    = key.utf8_2;
                temp.utf8_3    = key.utf8_3;
                temp.utf8_4    = key.utf8_4;
                temp.utf8_5    = key.utf8_5;
                temp.utf8_6    = key.utf8_6;

                TermKeyResult result = termkey_interpret_mouse32(termKey, ref temp, out ev, out button, out line, out col);

                key.type      = temp.type;
                key.code      = temp.code;
                key.modifiers = temp.modifiers;
                key.utf8_0    = temp.utf8_0;
                key.utf8_1    = temp.utf8_1;
                key.utf8_2    = temp.utf8_2;
                key.utf8_3    = temp.utf8_3;
                key.utf8_4    = temp.utf8_4;
                key.utf8_5    = temp.utf8_5;
                key.utf8_6    = temp.utf8_6;

                return(result);
            }
            else
            {
                TermKeyKey64 temp = new TermKeyKey64();
                temp.type      = key.type;
                temp.code      = key.code;
                temp.modifiers = key.modifiers;
                temp.utf8_0    = key.utf8_0;
                temp.utf8_1    = key.utf8_1;
                temp.utf8_2    = key.utf8_2;
                temp.utf8_3    = key.utf8_3;
                temp.utf8_4    = key.utf8_4;
                temp.utf8_5    = key.utf8_5;
                temp.utf8_6    = key.utf8_6;

                TermKeyResult result = termkey_interpret_mouse64(termKey, ref temp, out ev, out button, out line, out col);

                key.type      = temp.type;
                key.code      = temp.code;
                key.modifiers = temp.modifiers;
                key.utf8_0    = temp.utf8_0;
                key.utf8_1    = temp.utf8_1;
                key.utf8_2    = temp.utf8_2;
                key.utf8_3    = temp.utf8_3;
                key.utf8_4    = temp.utf8_4;
                key.utf8_5    = temp.utf8_5;
                key.utf8_6    = temp.utf8_6;

                return(result);
            }
        }
Esempio n. 6
0
		public static TermKeyResult termkey_interpret_mouse(IntPtr termKey, ref TermKeyKey key,
                                                                    out TermKeyMouseEvent ev,
                                                                    out int button,
                                                                    out int line,
                                                                    out int col) {
			if (IntPtr.Size == 4) {
				TermKeyKey32 temp = new TermKeyKey32();
				temp.type = key.type;
				temp.code = key.code;
				temp.modifiers = key.modifiers;
				temp.utf8_0 = key.utf8_0;
				temp.utf8_1 = key.utf8_1;
				temp.utf8_2 = key.utf8_2;
				temp.utf8_3 = key.utf8_3;
				temp.utf8_4 = key.utf8_4;
				temp.utf8_5 = key.utf8_5;
				temp.utf8_6 = key.utf8_6;
				
				TermKeyResult result = termkey_interpret_mouse32(termKey, ref temp, out ev, out button, out line, out col);
				
				key.type = temp.type;
				key.code = temp.code;
				key.modifiers = temp.modifiers;
				key.utf8_0 = temp.utf8_0;
				key.utf8_1 = temp.utf8_1;
				key.utf8_2 = temp.utf8_2;
				key.utf8_3 = temp.utf8_3;
				key.utf8_4 = temp.utf8_4;
				key.utf8_5 = temp.utf8_5;
				key.utf8_6 = temp.utf8_6;
				
				return result;
			} else {
				TermKeyKey64 temp = new TermKeyKey64();
				temp.type = key.type;
				temp.code = key.code;
				temp.modifiers = key.modifiers;
				temp.utf8_0 = key.utf8_0;
				temp.utf8_1 = key.utf8_1;
				temp.utf8_2 = key.utf8_2;
				temp.utf8_3 = key.utf8_3;
				temp.utf8_4 = key.utf8_4;
				temp.utf8_5 = key.utf8_5;
				temp.utf8_6 = key.utf8_6;
				
				TermKeyResult result = termkey_interpret_mouse64(termKey, ref temp, out ev, out button, out line, out col);
				
				key.type = temp.type;
				key.code = temp.code;
				key.modifiers = temp.modifiers;
				key.utf8_0 = temp.utf8_0;
				key.utf8_1 = temp.utf8_1;
				key.utf8_2 = temp.utf8_2;
				key.utf8_3 = temp.utf8_3;
				key.utf8_4 = temp.utf8_4;
				key.utf8_5 = temp.utf8_5;
				key.utf8_6 = temp.utf8_6;
				
				return result;
			}
		}
Esempio n. 7
0
 private static extern TermKeyResult termkey_getkey_force32( IntPtr termKey, ref TermKeyKey32 key );
Esempio n. 8
0
 private static extern TermKeyResult termkey_interpret_mouse32( IntPtr termKey, ref TermKeyKey32 key,
                                                             out TermKeyMouseEvent ev,
                                                             out int button,
                                                             out int line,
                                                             out int col );