diff options
Diffstat (limited to 'common/tablet_mode.c')
-rw-r--r-- | common/tablet_mode.c | 18 |
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; +} + |