Skip to content

Commit 98a87fc

Browse files
committed
Fix typo in comment
1 parent a8b0138 commit 98a87fc

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

sources/cpp-sdl2/event.hpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// initialization. Supress IntelliSence CppCoreGuideline
1616
// "MEMBER_UNINIT" warning. The static ananlyser doesn't like our union
1717
// initialized only by writing over the whole object with the value of an
18-
// SDL_Event. Have toa agree with it on the fact that this is using dark magic
18+
// SDL_Event. Have to agree with it on the fact that this is using dark magic
1919
// **BUT** we actually **KNOW** what we are doing here, thank you very much
2020
#if _MSC_VER >= 1910
2121
#pragma warning(push)
@@ -35,32 +35,32 @@ union Event
3535
// <SDL2/SDL_events.h>
3636
public:
3737
Uint32 type; ///< Event type, shared with all events
38-
SDL_CommonEvent common; ///< Common event data
39-
SDL_WindowEvent window; ///< Window event data
38+
SDL_CommonEvent common; ///< Common event data
39+
SDL_WindowEvent window; ///< Window event data
4040
SDL_KeyboardEvent key; ///< Keyboard event data
4141
SDL_TextEditingEvent edit; ///< Text editing event data
4242
SDL_TextInputEvent text; ///< Text input event data
43-
SDL_MouseMotionEvent motion; ///< Mouse motion event data
44-
SDL_MouseButtonEvent button; ///< Mouse button event data
43+
SDL_MouseMotionEvent motion; ///< Mouse motion event data
44+
SDL_MouseButtonEvent button; ///< Mouse button event data
4545
SDL_MouseWheelEvent wheel; ///< Mouse wheel event data
4646
SDL_JoyAxisEvent jaxis; ///< Joystick axis event data
4747
SDL_JoyBallEvent jball; ///< Joystick ball event data
4848
SDL_JoyHatEvent jhat; ///< Joystick hat event data
49-
SDL_JoyButtonEvent jbutton; ///< Joystick button event data
50-
SDL_JoyDeviceEvent jdevice; ///< Joystick device change event data
51-
SDL_ControllerAxisEvent caxis; ///< Game Controller axis event data
52-
SDL_ControllerButtonEvent cbutton; ///< Game Controller button event data
53-
SDL_ControllerDeviceEvent cdevice; ///< Game Controller device event data
54-
SDL_AudioDeviceEvent adevice; ///< Audio device event data
49+
SDL_JoyButtonEvent jbutton; ///< Joystick button event data
50+
SDL_JoyDeviceEvent jdevice; ///< Joystick device change event data
51+
SDL_ControllerAxisEvent caxis; ///< Game Controller axis event data
52+
SDL_ControllerButtonEvent cbutton; ///< Game Controller button event data
53+
SDL_ControllerDeviceEvent cdevice; ///< Game Controller device event data
54+
SDL_AudioDeviceEvent adevice; ///< Audio device event data
5555
SDL_QuitEvent quit; ///< Quit request event data
5656
SDL_UserEvent user; ///< Custom event data
5757
SDL_SysWMEvent syswm; ///< System dependent window event data
58-
SDL_TouchFingerEvent tfinger; ///< Touch finger event data
59-
SDL_MultiGestureEvent mgesture; ///< Gesture event data
60-
SDL_DollarGestureEvent dgesture; ///< Gesture event data
58+
SDL_TouchFingerEvent tfinger; ///< Touch finger event data
59+
SDL_MultiGestureEvent mgesture; ///< Gesture event data
60+
SDL_DollarGestureEvent dgesture; ///< Gesture event data
6161
SDL_DropEvent drop; ///< Drag and drop event data
6262
#if SDL_VERSION_ATLEAST(2, 0, 9)
63-
SDL_SensorEvent sensor; /// Sensor event data
63+
SDL_SensorEvent sensor; /// Sensor event data
6464
SDL_DisplayEvent display; /// Window event data
6565
#endif
6666

@@ -324,8 +324,8 @@ union Event
324324
{
325325
using func_type = bool (*)(void*, Event&);
326326

327-
void* userdata_ = nullptr;
328-
func_type filter_ = nullptr;
327+
void* userdata_ = nullptr;
328+
func_type filter_ = nullptr;
329329
bool isWatcher_ = false;
330330

331331
EventFilter(func_type filter, void* userdata)

0 commit comments

Comments
 (0)