//! We make our input server use the map in /boot/home/config/settings/Keymap status_t Keymap::Use() { #if (defined(__BEOS__) || defined(__HAIKU__)) return _restore_key_map_(); #else // ! __BEOS__ fprintf(stderr, "Unsupported operation on this platform!\n"); exit(1); #endif // ! __BEOS__ }
//! We make our input server use the map in /boot/home/config/settings/Keymap status_t Keymap::Use() { #ifdef HAIKU_TARGET_PLATFORM_HAIKU return _restore_key_map_(); #else // ! __BEOS__ fprintf(stderr, "Unsupported operation on this platform!\n"); exit(1); #endif // ! __BEOS__ }
void Keymap::RestoreSystemDefault() { #if (defined(__BEOS__) || defined(__HAIKU__)) // work-around to get rid of this stupid find_directory_r() on Zeta # ifdef find_directory # undef find_directory # endif BPath path; if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) != B_OK) return; path.Append("Key_map"); BEntry entry(path.Path()); entry.Remove(); _restore_key_map_(); #else // ! __BEOS__ fprintf(stderr, "Unsupported operation on this platform!\n"); exit(1); #endif // ! __BEOS__ }
//! We make our input server use the map in /boot/home/config/settings/Keymap status_t Keymap::Use() { return _restore_key_map_(); }