Skip to content

Commit

Permalink
Add Swkbd.Type enum
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Oct 31, 2023
1 parent 47efc5f commit 8c24df9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cuddly-papayas-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'nxjs-constants': patch
---

Add `Swkbd.Type` enum
3 changes: 2 additions & 1 deletion packages/constants/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as Applet from './applet';
import * as Hid from './hid';
import * as Swkbd from './swkbd';

export { Applet, Hid };
export { Applet, Hid, Swkbd };
13 changes: 13 additions & 0 deletions packages/constants/src/swkbd.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/// Type of keyboard.
export enum Type {
Normal = 0, ///< Normal keyboard.
NumPad = 1, ///< Number pad. The buttons at the bottom left/right are only available when they're set by \ref swkbdConfigSetLeftOptionalSymbolKey / \ref swkbdConfigSetRightOptionalSymbolKey.
QWERTY = 2, ///< QWERTY (and variants) keyboard only.
Unknown3 = 3, ///< The same as SwkbdType_Normal keyboard.
Latin = 4, ///< All Latin like languages keyboard only (without CJK keyboard).
ZhHans = 5, ///< Chinese Simplified keyboard only.
ZhHant = 6, ///< Chinese Traditional keyboard only.
Korean = 7, ///< Korean keyboard only.
All = 8, ///< All language keyboards.
Unknown9 = 9, ///< Unknown
}

0 comments on commit 8c24df9

Please sign in to comment.