Skip to content

Instantly share code, notes, and snippets.

@iwadon
Created March 28, 2010 10:01
Show Gist options
  • Save iwadon/346683 to your computer and use it in GitHub Desktop.
Save iwadon/346683 to your computer and use it in GitHub Desktop.
Synergy2へのパッチ。先人のパッチを参考にして自分に必要な修正のみ残した。ひとまずWindows XP/7とMac OS X 10.4間のやりとりが出来るのを確認してる。
Index: lib/synergy/KeyTypes.h
===================================================================
--- lib/synergy/KeyTypes.h (リビジョン 897)
+++ lib/synergy/KeyTypes.h (作業コピー)
@@ -103,6 +103,7 @@
static const KeyID kKeyScrollLock = 0xEF14;
static const KeyID kKeySysReq = 0xEF15;
static const KeyID kKeyEscape = 0xEF1B;
+static const KeyID kKeyMuhenkan = 0xEF22; /* Cancel Conversion */
static const KeyID kKeyHenkan = 0xEF23; /* Start/Stop Conversion */
static const KeyID kKeyHangulKana = 0xEF26; /* Hangul, Kana */
static const KeyID kKeyHiraganaKatakana = 0xEF27; /* Hiragana/Katakana toggle */
Index: lib/synergy/KeyTypes.cpp
===================================================================
--- lib/synergy/KeyTypes.cpp (リビジョン 897)
+++ lib/synergy/KeyTypes.cpp (作業コピー)
@@ -81,6 +81,7 @@
{ "Find", kKeyFind },
{ "Help", kKeyHelp },
{ "Henkan", kKeyHenkan },
+ { "HiragnaKatakana", kKeyHiraganaKatakana },
{ "Home", kKeyHome },
{ "Hyper_L", kKeyHyper_L },
{ "Hyper_R", kKeyHyper_R },
Index: lib/platform/CMSWindowsKeyState.cpp
===================================================================
--- lib/platform/CMSWindowsKeyState.cpp (リビジョン 897)
+++ lib/platform/CMSWindowsKeyState.cpp (作業コピー)
@@ -64,7 +64,7 @@
/* 0x01a */ { kKeyNone }, // undefined
/* 0x01b */ { kKeyEscape }, // VK_ESCAPE
/* 0x01c */ { kKeyHenkan }, // VK_CONVERT
- /* 0x01d */ { kKeyNone }, // VK_NONCONVERT
+ /* 0x01d */ { kKeyMuhenkan }, // VK_NONCONVERT
/* 0x01e */ { kKeyNone }, // VK_ACCEPT
/* 0x01f */ { kKeyNone }, // VK_MODECHANGE
/* 0x020 */ { kKeyNone }, // VK_SPACE
Index: lib/platform/COSXKeyState.cpp
===================================================================
--- lib/platform/COSXKeyState.cpp (リビジョン 897)
+++ lib/platform/COSXKeyState.cpp (作業コピー)
@@ -88,6 +88,9 @@
{ kKeyKP_Subtract, 79 },
{ kKeyKP_Enter, 76 },
+ { kKeyMuhenkan, 102},
+ { kKeyHiraganaKatakana, 104},
+
// virtual key 110 is fn+enter and i have no idea what that's supposed
// to map to. also the enter key with numlock on is a modifier but i
// don't know which.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment