# lv_windows_input.h (/api/drivers/windows/lv_windows_input_h)



<RelatedHeaders name="lv_windows_input_private.h" isPrivate="false" />

<ApiSummary functions="4" />

Functions [#functions]

<ApiTabs items="[&#x22;Getters (1)&#x22;,&#x22;Other (3)&#x22;]">
  <ApiTab value="Getters (1)">
    <ApiMember kind="function" name="lv_windows_get_indev_window_handle" file="drivers/windows/lv_windows_input.h" line="41" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/windows/lv_windows_input.h#L41">
      lv_windows_get_indev_window_handle [#lv_windows_get_indev_window_handle]

      Get the window handle from specific LVGL input device object.

      ```c title=" " lineNumbers=1
      HWND lv_windows_get_indev_window_handle(lv_indev_t *indev)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                            |
      | ------- | ---------------------------------------------------- | -------------------------------------- |
      | `indev` | <ApiLink name="lv_indev_t" display="lv_indev_t *" /> | The specific LVGL input device object. |

      **Returns:** `HWND` — The window handle from specific LVGL input device object.
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (3)">
    <ApiMember kind="function" name="lv_windows_acquire_pointer_indev" file="drivers/windows/lv_windows_input.h" line="51" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/windows/lv_windows_input.h#L51">
      lv_windows_acquire_pointer_indev [#lv_windows_acquire_pointer_indev]

      Open a LVGL pointer input device object for the specific LVGL display object, or create it if the LVGL pointer input device object is not created or removed before.

      ```c title=" " lineNumbers=1
      lv_indev_t * lv_windows_acquire_pointer_indev(lv_display_t *display)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name      | Type                                                     | Description                       |
      | --------- | -------------------------------------------------------- | --------------------------------- |
      | `display` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | The specific LVGL display object. |

      **Returns:** <ApiLink name="lv_indev_t" display="lv_indev_t *" /> — The LVGL pointer input device object for the specific LVGL display object.
    </ApiMember>

    <ApiMember kind="function" name="lv_windows_acquire_keypad_indev" file="drivers/windows/lv_windows_input.h" line="61" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/windows/lv_windows_input.h#L61">
      lv_windows_acquire_keypad_indev [#lv_windows_acquire_keypad_indev]

      Open a LVGL keypad input device object for the specific LVGL display object, or create it if the LVGL keypad input device object is not created or removed before.

      ```c title=" " lineNumbers=1
      lv_indev_t * lv_windows_acquire_keypad_indev(lv_display_t *display)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name      | Type                                                     | Description                       |
      | --------- | -------------------------------------------------------- | --------------------------------- |
      | `display` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | The specific LVGL display object. |

      **Returns:** <ApiLink name="lv_indev_t" display="lv_indev_t *" /> — The LVGL keypad input device object for the specific LVGL display object.
    </ApiMember>

    <ApiMember kind="function" name="lv_windows_acquire_encoder_indev" file="drivers/windows/lv_windows_input.h" line="71" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/windows/lv_windows_input.h#L71">
      lv_windows_acquire_encoder_indev [#lv_windows_acquire_encoder_indev]

      Open a LVGL encoder input device object for the specific LVGL display object, or create it if the LVGL encoder input device object is not created or removed before.

      ```c title=" " lineNumbers=1
      lv_indev_t * lv_windows_acquire_encoder_indev(lv_display_t *display)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name      | Type                                                     | Description                       |
      | --------- | -------------------------------------------------------- | --------------------------------- |
      | `display` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | The specific LVGL display object. |

      **Returns:** <ApiLink name="lv_indev_t" display="lv_indev_t *" /> — The LVGL encoder input device object for the specific LVGL display object.
    </ApiMember>
  </ApiTab>
</ApiTabs>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_display.h&#x22;, &#x22;lv_indev.h&#x22;, &#x22;windows.h&#x22;]" includedBy="[&#x22;lv_drivers.h&#x22;]" transitiveIncludes="[&#x22;lv_area.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
