Program Listing for File mir_input_device_types.h

↰ Return to documentation for file (/home/docs/checkouts/readthedocs.org/user_builds/canonical-mir-documentation/checkouts/2.30/include/core/mir_toolkit/mir_input_device_types.h)

/*
 * Copyright © Canonical Ltd.
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License version 2 or 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef MIR_TOOLKIT_MIR_INPUT_DEVICE_TYPES_H_
#define MIR_TOOLKIT_MIR_INPUT_DEVICE_TYPES_H_

#include <stdint.h>

typedef int64_t MirInputDeviceId;

enum MirPointerHandedness
{
    mir_pointer_handedness_right = 0,
    mir_pointer_handedness_left = 1
};

enum MirPointerAcceleration
{
    mir_pointer_acceleration_none = 1,
    mir_pointer_acceleration_adaptive = 2
};

enum MirTouchpadClickMode
{
    mir_touchpad_click_mode_none = 0,
    mir_touchpad_click_mode_area_to_click = 1 << 0,
    mir_touchpad_click_mode_finger_count = 1 << 1
};

enum MirTouchpadScrollMode
{
    mir_touchpad_scroll_mode_none = 0,
    mir_touchpad_scroll_mode_two_finger_scroll = 1 << 0,
    mir_touchpad_scroll_mode_edge_scroll = 1 << 1,
    mir_touchpad_scroll_mode_button_down_scroll = 1 << 2
};

enum MirTouchscreenMappingMode
{
    mir_touchscreen_mapping_mode_to_output,
    mir_touchscreen_mapping_mode_to_display_wall
};
#endif