pike.git / lib / modules / GLUE.pmod / Events.pmod

version» Context lines:

pike.git/lib/modules/GLUE.pmod/Events.pmod:187:    -7001:"Joy 7+", -7002:"Joy 7-",    -8001:"Joy 8+", -8002:"Joy 8-",    -9001:"Joy 9+", -9002:"Joy 9-",    -10001:"Joy 10+", -10002:"Joy 10-",       EXIT:"Exit",   ]);      #ifdef __NT__   string get_nt_keymap() { -  string keymap = RegGetValue(HKEY_CURRENT_USER, +  string keymap = System.RegGetValue(HKEY_CURRENT_USER,    "Keyboard Layout\\Preload", "1"); -  keymap = RegGetValue(HKEY_LOCAL_MACHINE, +  keymap = System.RegGetValue(HKEY_LOCAL_MACHINE,    "SYSTEM\\CurrentControlSet\\Control\\"    "Keyboard Layout\\DosKeybCodes", keymap);    return keymap;   }   #endif      //! Returns @expr{1@} if the key code @[k] is a modifier key, e.g.   //! @[LSHIFT] or @[RSHIFT].   int(0..1) is_modifier(int k)   {
pike.git/lib/modules/GLUE.pmod/Events.pmod:266:    if( objectp( e ) )    return ((e->press == press) && (e->key == key) &&    (e->modifiers == modifiers) && (e->raw == raw));    }       protected int __hash( )    {    return hash( sprintf( "%d %d %d", press, key, modifiers ) );    }    -  string cast(string to) { +  protected string cast(string to) +  {    if(to=="string") return data; -  error("Can not cast to %s.\n", to); +  return UNDEFINED;    }       void update_modifiers(int _modifiers) {    modifiers = _modifiers;    if( modifiers == _SHFT )    data = upper_case(data);    else if( !modifiers )    data = lower_case(data);    }