Skip to content

Commit

Permalink
feat(win32-def): update properties of VirtualKey
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jun 16, 2024
1 parent 38f7a34 commit bb091d7
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
76 changes: 38 additions & 38 deletions packages/win32-def/src/lib/consts/virtual-key.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,44 +90,44 @@ export enum VirtualKey {
VK_DELETE = 0x2E,
/** HELP key */
VK_HELP = 0x2F,
/*
0x30 = 0 key
0x31 = 1 key
0x32 = 2 key
0x33 = 3 key
0x34 = 4 key
0x35 = 5 key
0x36 = 6 key
0x37 = 7 key
0x38 = 8 key
0x39 = 9 key
0x41 = A key
0x42 = B key
0x43 = C key
0x44 = D key
0x45 = E key
0x46 = F key
0x47 = G key
0x48 = H key
0x49 = I key
0x4A = J key
0x4B = K key
0x4C = L key
0x4D = M key
0x4E = N key
0x4F = O key
0x50 = P key
0x51 = Q key
0x52 = R key
0x53 = S key
0x54 = T key
0x55 = U key
0x56 = V key
0x57 = W key
0x58 = X key
0x59 = Y key
0x5A = Z key
*/
/** 0 key */
VK_0 = 0x30,
VK_1 = 0x31,
VK_2 = 0x32,
VK_3 = 0x33,
VK_4 = 0x34,
VK_5 = 0x35,
VK_6 = 0x36,
VK_7 = 0x37,
VK_8 = 0x38,
VK_9 = 0x39,
/** A key */
VK_A = 0x41,
VK_B = 0x42,
VK_C = 0x43,
VK_D = 0x44,
VK_E = 0x45,
VK_F = 0x46,
VK_G = 0x47,
VK_H = 0x48,
VK_I = 0x49,
VK_J = 0x4A,
VK_K = 0x4B,
VK_L = 0x4C,
VK_M = 0x4D,
VK_N = 0x4E,
VK_O = 0x4F,
VK_P = 0x50,
VK_Q = 0x51,
VK_R = 0x52,
VK_S = 0x53,
VK_T = 0x54,
VK_U = 0x55,
VK_V = 0x56,
VK_W = 0x57,
VK_X = 0x58,
VK_Y = 0x59,
VK_Z = 0x5A,
/** Left Windows key(Natural keyboard) */
VK_LWIN = 0x5B,
/** Right Windows key(Natural keyboard) */
Expand Down
2 changes: 1 addition & 1 deletion packages/win32-def/src/lib/ffi.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface LoadSettings {
// export { FFIBuffer as Buffer }


// custome
// custom
export type PID = number
export type PPID = number

Expand Down

0 comments on commit bb091d7

Please sign in to comment.