# lv_windows_input.h (/api/public/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="public/drivers/windows/lv_windows_input.h" line="40" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/drivers/windows/lv_windows_input.h#L40">
      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:** <ApiLink name="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="public/drivers/windows/lv_windows_input.h" line="50" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/drivers/windows/lv_windows_input.h#L50">
      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="public/drivers/windows/lv_windows_input.h" line="60" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/drivers/windows/lv_windows_input.h#L60">
      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="public/drivers/windows/lv_windows_input.h" line="70" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/include/lvgl/drivers/windows/lv_windows_input.h#L70">
      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_windows_display.h&#x22;, &#x22;lv_display.h&#x22;, &#x22;lv_indev.h&#x22;]" includedBy="[&#x22;lvgl.h&#x22;]" transitiveIncludes="[&#x22;lv_area.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_event.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
