From 0299dcb71b8853e83a27987cab53e7e692935107 Mon Sep 17 00:00:00 2001 From: jsakamoto Date: Sat, 6 Jul 2024 21:18:05 +0900 Subject: [PATCH] Add Numpad and Japanese specific keys and codes --- HotKeys2/Code.List.cs | 60 +++++++++++++++++++++++++++++++++++++++++++ HotKeys2/Key.List.cs | 9 +++++++ HotKeys2/KeyList.csv | 23 +++++++++++++++++ 3 files changed, 92 insertions(+) diff --git a/HotKeys2/Code.List.cs b/HotKeys2/Code.List.cs index 663abb4..995d200 100644 --- a/HotKeys2/Code.List.cs +++ b/HotKeys2/Code.List.cs @@ -251,6 +251,9 @@ public partial struct Code /// ScrollLock public static Code ScrollLock => new("ScrollLock"); + /// Pause + public static Code Pause => new("Pause"); + /// Equal (=) public static Code Equal => new("Equal"); @@ -284,4 +287,61 @@ public partial struct Code /// BracketRight (]) public static Code BracketRight => new("BracketRight"); + /// Numpad0 + public static Code Numpad0 => new("Numpad0"); + + /// Numpad1 + public static Code Numpad1 => new("Numpad1"); + + /// Numpad2 + public static Code Numpad2 => new("Numpad2"); + + /// Numpad3 + public static Code Numpad3 => new("Numpad3"); + + /// Numpad4 + public static Code Numpad4 => new("Numpad4"); + + /// Numpad5 + public static Code Numpad5 => new("Numpad5"); + + /// Numpad6 + public static Code Numpad6 => new("Numpad6"); + + /// Numpad7 + public static Code Numpad7 => new("Numpad7"); + + /// Numpad8 + public static Code Numpad8 => new("Numpad8"); + + /// Numpad9 + public static Code Numpad9 => new("Numpad9"); + + /// NumpadDecimal (.) + public static Code NumpadDecimal => new("NumpadDecimal"); + + /// NumpadAdd (+) + public static Code NumpadAdd => new("NumpadAdd"); + + /// NumpadSubtract (-) + public static Code NumpadSubtract => new("NumpadSubtract"); + + /// NumpadMultiply (*) + public static Code NumpadMultiply => new("NumpadMultiply"); + + /// NumpadDivide (/) + public static Code NumpadDivide => new("NumpadDivide"); + + /// NumpadEnter + public static Code NumpadEnter => new("NumpadEnter"); + + /// KanaMode (カタカナ/ひらがな/ローマ字) + public static Code KanaMode => new("KanaMode"); + + /// Convert (変換) + public static Code Convert => new("Convert"); + + /// NonConvert (無変換) + public static Code NonConvert => new("NonConvert"); + } \ No newline at end of file diff --git a/HotKeys2/Key.List.cs b/HotKeys2/Key.List.cs index 4d16845..e985b37 100644 --- a/HotKeys2/Key.List.cs +++ b/HotKeys2/Key.List.cs @@ -317,6 +317,9 @@ public partial struct Key /// ScrollLock public static Key ScrollLock => new("ScrollLock"); + /// Pause + public static Key Pause => new("Pause"); + /// Equal (=) public static Key Equal => new("="); @@ -410,6 +413,12 @@ public partial struct Key /// Tilde (~) public static Key Tilde => new("~"); + /// Zenkaku (全角) + public static Key Zenkaku => new("Zenkaku"); + + /// Hankaku (半角) + public static Key Hankaku => new("Hankaku"); + /// AudioVolumeMute public static Key AudioVolumeMute => new("AudioVolumeMute "); diff --git a/HotKeys2/KeyList.csv b/HotKeys2/KeyList.csv index 65a391d..5a1e161 100644 --- a/HotKeys2/KeyList.csv +++ b/HotKeys2/KeyList.csv @@ -155,6 +155,29 @@ Caret,^,,Caret (^) VerticalLine,|,,Vertical Line (|) Tilde,~,,Tilde (~) ,,, +Numpad0,,Numpad0,Numpad0 +Numpad1,,Numpad1,Numpad1 +Numpad2,,Numpad2,Numpad2 +Numpad3,,Numpad3,Numpad3 +Numpad4,,Numpad4,Numpad4 +Numpad5,,Numpad5,Numpad5 +Numpad6,,Numpad6,Numpad6 +Numpad7,,Numpad7,Numpad7 +Numpad8,,Numpad8,Numpad8 +Numpad9,,Numpad9,Numpad9 +NumpadDecimal,,NumpadDecimal,NumpadDecimal (.) +NumpadAdd,,NumpadAdd,NumpadAdd (+) +NumpadSubtract,,NumpadSubtract,NumpadSubtract (-) +NumpadMultiply,,NumpadMultiply,NumpadMultiply (*) +NumpadDivide,,NumpadDivide,NumpadDivide (/) +NumpadEnter,,NumpadEnter,NumpadEnter +,,, +KanaMode,,KanaMode,KanaMode (カタカナ/ひらがな/ローマ字) +Convert,,Convert,Convert (変換) +NonConvert,,NonConvert,NonConvert (無変換) +Zenkaku,Zenkaku,,Zenkaku (全角) +Hankaku,Hankaku,,Hankaku (半角) +,,, AudioVolumeMute ,AudioVolumeMute ,,AudioVolumeMute AudioVolumeDown,AudioVolumeDown,,AudioVolumeDown AudioVolumeUp,AudioVolumeUp,,AudioVolumeUp