Commit 5a853575 authored by Yash Malik's avatar Yash Malik Committed by Commit Bot

VR: Update header to Keyboard API v2

Bug: 811494
Change-Id: I4db9912240ac54e1883259d1981e6254b3600818
Reviewed-on: https://chromium-review.googlesource.com/935472Reviewed-by: default avatarChristopher Grant <cjgrant@chromium.org>
Commit-Queue: Yash Malik <ymalik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#538926}
parent e2ec670f
Name: GVR Keyboard
Short Name: gvr-android-keyboard
URL: NA
Version: 0
Version: 2
Date: 2017-11-14
License: Apache 2.0
License File: LICENSE
......
......@@ -90,6 +90,8 @@ typedef enum {
GVR_KEYBOARD_MODE_DEFAULT = 0,
/// Keyboard layout for inputing numbers.
GVR_KEYBOARD_MODE_NUMERIC = 1,
/// Keyboard layout for inputing password.
GVR_KEYBOARD_MODE_PASSWORD = 2,
} gvr_keyboard_input_mode;
typedef struct gvr_mat4f gvr_mat4f;
......@@ -184,6 +186,15 @@ bool gvr_keyboard_update_controller_ray(gvr_keyboard_context* context,
const gvr_vec3f* end,
gvr_vec3f* hit);
/// Updates the touch state of the controller.
///
/// @param context A pointer to the keyboard's context.
/// @param touched Whether touch pad is being touched.
/// @param pos Touch position.
void gvr_keyboard_update_controller_touch(gvr_keyboard_context* context,
bool touched,
const gvr_vec2f* pos);
/// Gets the contents of the keyboard's text field.
///
/// @param context A pointer to the keyboard's context.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment