Skip to content
Snippets Groups Projects
Select Git revision
  • 3b5a7ab40c2a1bfd89dd5b4bbfe98f8692d5fd62
  • master default protected
  • android-msm-bullhead-3.10-nougat_kgdb_less_changes
  • android-msm-bullhead-3.10-nougat_kgdb
  • android-msm-bullhead-3.10-nougat_klist
  • android-4.4
  • android-msm-vega-4.4-oreo-daydream
  • android-msm-wahoo-4.4-p-preview-5
  • android-msm-wahoo-4.4-pie
  • android-msm-marlin-3.18-p-preview-5
  • android-msm-marlin-3.18-pie
  • android-msm-wahoo-2018.07-oreo-m2
  • android-msm-wahoo-2018.07-oreo-m4
  • android-msm-wahoo-4.4-p-preview-4
  • android-msm-bullhead-3.10-oreo-m6
  • android-msm-angler-3.10-oreo-m6
  • android-msm-marlin-3.18-p-preview-4
  • android-msm-stargazer-3.18-oreo-wear-dr
  • android-msm-catshark-3.18-oreo-wear-dr
  • android-msm-wahoo-4.4-oreo-m2
  • android-msm-wahoo-4.4-oreo-m4
  • android-daydreamos-8.0.0_r0.5
  • android-8.1.0_r0.92
  • android-8.1.0_r0.91
  • android-daydreamos-8.0.0_r0.4
  • android-p-preview-5_r0.2
  • android-p-preview-5_r0.1
  • android-9.0.0_r0.5
  • android-9.0.0_r0.4
  • android-9.0.0_r0.2
  • android-9.0.0_r0.1
  • android-8.1.0_r0.81
  • android-8.1.0_r0.80
  • android-8.1.0_r0.78
  • android-8.1.0_r0.76
  • android-8.1.0_r0.75
  • android-8.1.0_r0.72
  • android-8.1.0_r0.70
  • android-p-preview-4_r0.2
  • android-p-preview-4_r0.1
  • android-wear-8.0.0_r0.30
41 results

input.h

Blame
  • input.h 32.35 KiB
    /*
     * Copyright (c) 1999-2002 Vojtech Pavlik
     *
     * This program is free software; you can redistribute it and/or modify it
     * under the terms of the GNU General Public License version 2 as published by
     * the Free Software Foundation.
     */
    #ifndef _UAPI_INPUT_H
    #define _UAPI_INPUT_H
    
    
    #ifndef __KERNEL__
    #include <sys/time.h>
    #include <sys/ioctl.h>
    #include <sys/types.h>
    #include <linux/types.h>
    #endif
    
    
    /*
     * The event structure itself
     */
    
    struct input_event {
    	struct timeval time;
    	__u16 type;
    	__u16 code;
    	__s32 value;
    };
    
    /*
     * Protocol version.
     */
    
    #define EV_VERSION		0x010001
    
    /*
     * IOCTLs (0x00 - 0x7f)
     */
    
    struct input_id {
    	__u16 bustype;
    	__u16 vendor;
    	__u16 product;
    	__u16 version;
    };
    
    /**
     * struct input_absinfo - used by EVIOCGABS/EVIOCSABS ioctls
     * @value: latest reported value for the axis.
     * @minimum: specifies minimum value for the axis.
     * @maximum: specifies maximum value for the axis.
     * @fuzz: specifies fuzz value that is used to filter noise from
     *	the event stream.
     * @flat: values that are within this value will be discarded by
     *	joydev interface and reported as 0 instead.
     * @resolution: specifies resolution for the values reported for
     *	the axis.
     *
     * Note that input core does not clamp reported values to the
     * [minimum, maximum] limits, such task is left to userspace.
     *
     * Resolution for main axes (ABS_X, ABS_Y, ABS_Z) is reported in
     * units per millimeter (units/mm), resolution for rotational axes
     * (ABS_RX, ABS_RY, ABS_RZ) is reported in units per radian.
     */
    struct input_absinfo {
    	__s32 value;
    	__s32 minimum;
    	__s32 maximum;