Skip to content

Commit 7e99be2

Browse files
authored
Merge pull request #101 from kirurobo/dev_patch
Bug fix and update README
2 parents ff03688 + ea3f6e5 commit 7e99be2

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

UniWinC/Assets/Kirurobo/UniWindowController/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ How to write the changelog.
88
https://keepachangelog.com/ja/1.0.0/
99
--->
1010

11+
## [v0.9.8] - 2025-11-18
12+
### Added
13+
- Added IsFreePositioningEnabled property for macOS.
14+
- Changed .bundle's signing to adhoc for macOS.
15+
1116
## [v0.9.7] - 2025-03-07
1217
### Fixed
1318
- Improved stability on macOS.

UniWinC/Assets/Kirurobo/UniWindowController/README-ja.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Unified window controller for macOS and Windows
33
略称:UniWinC(ユニウィンク)
44

55
[![license](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/kirurobo/UniWindowController/blob/master/LICENSE)
6+
<a href="https://flatt.tech/oss/gmo/trampoline" target="_blank"><img src="https://flatt.tech/assets/images/badges/gmo-oss.svg" height="20px"/></a>
7+
68

79
### README
810
- [Japanese (日本語での説明)](README-ja.md)

UniWinC/Assets/Kirurobo/UniWindowController/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Unified window controller for macOS and Windows
33
Abbreviation:UniWinC
44

55
[![license](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/kirurobo/UniWindowController/blob/master/LICENSE)
6+
<a href="https://flatt.tech/oss/gmo/trampoline" target="_blank"><img src="https://flatt.tech/assets/images/badges/gmo-oss.svg" height="20px"/></a>
7+
68

79
### README
810
- [Japanese (日本語での説明)](README-ja.md)

UniWinC/Assets/Kirurobo/UniWindowController/Samples/Common/InputProxy.cs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,22 @@ public static bool GetKeyUp(String key)
3939
if (key.Length == 1) {
4040
Key k = Key.None;
4141
char c = key[0];
42-
if (c >= 'A' && c <= 'Z') k = (Key)Enum.ToObject(typeof(Key), (int)Key.A + (int)(c - 'A'));
43-
if (c >= 'a' && c <= 'z') k = (Key)Enum.ToObject(typeof(Key), (int)Key.A + (int)(c - 'a'));
44-
if (c >= '0' && c <= '9') k = (Key)Enum.ToObject(typeof(Key), (int)Key.Digit0 + (int)(c - '0'));
45-
return Keyboard.current[k].wasReleasedThisFrame;
42+
if (c >= '0' && c <= '9') {
43+
// 数字の場合はDigit0~Digit9とNumpad0~Numpad9の両方に反応
44+
k = (Key)Enum.ToObject(typeof(Key), (int)Key.Numpad0 + (int)(c - '0'));
45+
if (Keyboard.current[k].wasReleasedThisFrame) return true;
46+
47+
// Digitの場合はDigit0の値が最大
48+
k = (Key)Enum.ToObject(typeof(Key), (int)Key.Digit1 + (int)((c == '0' ? 9 : c - '1')));
49+
if (Keyboard.current[k].wasReleasedThisFrame) return true;
50+
}
51+
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) {
52+
// アルファベットの場合は大文字・小文字ともに反応{
53+
k = (Key)Enum.ToObject(typeof(Key), (int)Key.A + (int)(Char.ToUpper(c) - 'A'));
54+
if (Keyboard.current[k].wasReleasedThisFrame) return true;
55+
k = (Key)Enum.ToObject(typeof(Key), (int)Key.A + (int)(Char.ToLower(c) - 'a'));
56+
if (Keyboard.current[k].wasReleasedThisFrame) return true;
57+
}
4658
} else if (key == "escape") {
4759
return Keyboard.current.escapeKey.wasReleasedThisFrame;
4860
} else if (key == "space") {

0 commit comments

Comments
 (0)