Skip to content

Commit

Permalink
fix-documentation (#3738)
Browse files Browse the repository at this point in the history
Fix documentation to match the code
  • Loading branch information
hbatagelo authored Feb 5, 2025
2 parents 3731379 + 1bdfc27 commit 54f9716
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/sphinx/how-to/how-to-handle-keyboard-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ This big block of code can be broken down into three parts:
+ case XKB_KEY_t:
+ case XKB_KEY_T:
+ external_client_launcher.launch({terminal_cmd});
+ return false;
+ return true;
+
+ // Do nothing
+ default:
Expand Down
12 changes: 6 additions & 6 deletions include/common/mir_toolkit/events/input/input_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,26 @@ MirInputEventType mir_input_event_get_type(MirInputEvent const* event);
* Retrieve the MirKeyboardEvent associated with a given input event.
*
* \param[in] event The input event
* \return The MirKeyboardEvent or NULL if event type is not
* mir_input_event_type_key
* \return The MirKeyboardEvent
* \pre The event type is mir_input_event_type_key
*/
MirKeyboardEvent const* mir_input_event_get_keyboard_event(MirInputEvent const* event);

/**
* Retrieve the MirTouchEvent associated with a given input event.
*
* \param[in] event The input event
* \return The MirTouchEvent or NULL if event type is not
* mir_input_event_type_touch
* \return The MirTouchEvent
* \pre The event type is mir_input_event_type_touch
*/
MirTouchEvent const* mir_input_event_get_touch_event(MirInputEvent const* event);

/**
* Retrieve the MirPointerEvent associated with a given input event.
*
* \param[in] event The input event
* \return The MirPointerEvent or NULL if event type is not
* mir_input_event_type_pointer
* \return The MirPointerEvent
* \pre The event type is mir_input_event_type_pointer
*/
MirPointerEvent const* mir_input_event_get_pointer_event(MirInputEvent const* event);

Expand Down
12 changes: 6 additions & 6 deletions include/miral/miral/toolkit_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,26 @@ MirInputEventType mir_input_event_get_type(MirInputEvent const* event);
* Retrieve the MirKeyboardEvent associated with a given input event.
*
* \param[in] event The input event
* \return The MirKeyboardEvent or NULL if event type is not
* mir_input_event_type_key
* \return The MirKeyboardEvent
* \pre The event type is mir_input_event_type_key
*/
MirKeyboardEvent const* mir_input_event_get_keyboard_event(MirInputEvent const* event);

/**
* Retrieve the MirTouchEvent associated with a given input event.
*
* \param[in] event The input event
* \return The MirTouchEvent or NULL if event type is not
* mir_input_event_type_touch
* \return The MirTouchEvent
* \pre The event type is mir_input_event_type_touch
*/
MirTouchEvent const* mir_input_event_get_touch_event(MirInputEvent const* event);

/**
* Retrieve the MirPointerEvent associated with a given input event.
*
* \param[in] event The input event
* \return The MirPointerEvent or NULL if event type is not
* mir_input_event_type_pointer
* \return The MirPointerEvent
* \pre The event type is mir_input_event_type_pointer
*/
MirPointerEvent const* mir_input_event_get_pointer_event(MirInputEvent const* event);

Expand Down

0 comments on commit 54f9716

Please sign in to comment.