summaryrefslogtreecommitdiff
path: root/common/tablet_mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/tablet_mode.c')
-rw-r--r--common/tablet_mode.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/tablet_mode.c b/common/tablet_mode.c
new file mode 100644
index 0000000000..c2937250da
--- /dev/null
+++ b/common/tablet_mode.c
@@ -0,0 +1,18 @@
+/* Copyright 2016 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Return 1 if in tablet mode, 0 otherwise */
+static int tablet_mode = 1;
+
+int tablet_get_mode(void)
+{
+ return tablet_mode;
+}
+
+void tablet_set_mode(int mode)
+{
+ tablet_mode = mode;
+}
+