Skip to content

Commit 24f6471

Browse files
committed
Fixed typo
1 parent b5350e5 commit 24f6471

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

winx.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// dummy functions
88
void WinxDummyCursorEventHandle(int x, int y) {}
99
void WinxDummyButtonEventHandle(int type, int button) {}
10-
void WinxDummyKeybordEventHandle(int type, int key) {}
10+
void WinxDummyKeyboardEventHandle(int type, int key) {}
1111
void WinxDummyScrollEventHandle(int scroll) {}
1212
void WinxDummyCloseEventHandle() {}
1313
void WinxDummyResizeEventHandle(int width, int height) {}
@@ -95,7 +95,7 @@ typedef struct {
9595
WinxCursor* cursor_icon;
9696
WinxCursorEventHandle cursor;
9797
WinxButtonEventHandle button;
98-
WinxKeybordEventHandle keyboard;
98+
WinxKeyboardEventHandle keyboard;
9999
WinxScrollEventHandle scroll;
100100
WinxCloseEventHandle close;
101101
WinxResizeEventHandle resize;
@@ -1045,9 +1045,9 @@ void winxSetButtonEventHandle(WinxButtonEventHandle handle) {
10451045
winx->button = handle ? handle : WinxDummyButtonEventHandle;
10461046
}
10471047

1048-
void winxSetKeybordEventHandle(WinxKeybordEventHandle handle) {
1049-
WINX_CONTEXT_ASSERT("winxSetKeybordEventHandle");
1050-
winx->keyboard = handle ? handle : WinxDummyKeybordEventHandle;
1048+
void winxSetKeyboardEventHandle(WinxKeyboardEventHandle handle) {
1049+
WINX_CONTEXT_ASSERT("winxSetKeyboardEventHandle");
1050+
winx->keyboard = handle ? handle : WinxDummyKeyboardEventHandle;
10511051
}
10521052

10531053
void winxSetScrollEventHandle(WinxScrollEventHandle handle) {
@@ -1074,7 +1074,7 @@ void winxResetEventHandles() {
10741074
WINX_CONTEXT_ASSERT("winxResetEventHandles");
10751075
winx->cursor = WinxDummyCursorEventHandle;
10761076
winx->button = WinxDummyButtonEventHandle;
1077-
winx->keyboard = WinxDummyKeybordEventHandle;
1077+
winx->keyboard = WinxDummyKeyboardEventHandle;
10781078
winx->scroll = WinxDummyScrollEventHandle;
10791079
winx->close = WinxDummyCloseEventHandle;
10801080
winx->resize = WinxDummyResizeEventHandle;
@@ -1100,4 +1100,3 @@ void winxSetCursorIcon(WinxCursor* cursor) {
11001100
winxUpdateCursorState(winx->capture, winx->cursor_icon);
11011101
}
11021102
}
1103-

winx.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ typedef struct WinxCursor_s WinxCursor;
7575

7676
typedef void (*WinxCursorEventHandle)(int x, int y);
7777
typedef void (*WinxButtonEventHandle)(int state, int button);
78-
typedef void (*WinxKeybordEventHandle)(int state, int keycode);
78+
typedef void (*WinxKeyboardEventHandle)(int state, int keycode);
7979
typedef void (*WinxScrollEventHandle)(int scroll);
8080
typedef void (*WinxCloseEventHandle)(void);
8181
typedef void (*WinxResizeEventHandle)(int width, int height);
@@ -157,9 +157,9 @@ void winxSetCursorEventHandle(WinxCursorEventHandle handle);
157157
/// pass NULL to unset the associated event handler (if any)
158158
void winxSetButtonEventHandle(WinxButtonEventHandle handle);
159159

160-
/// set the handle for keybord events for current window
160+
/// set the handle for keyboard events for current window
161161
/// pass NULL to unset the associated event handler (if any)
162-
void winxSetKeybordEventHandle(WinxKeybordEventHandle handle);
162+
void winxSetKeyboardEventHandle(WinxKeyboardEventHandle handle);
163163

164164
/// set the handle for cursor scroll for current window
165165
/// pass NULL to unset the associated event handler (if any)
@@ -250,4 +250,3 @@ double winxGetTime();
250250
#endif
251251

252252
#endif // WINX_H
253-

0 commit comments

Comments
 (0)