| /linux/Documentation/devicetree/bindings/input/ |
| H A D | gpio-mouse.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/gpio-mouse.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 to 5-7 GPIO lines. 14 - Anshul Dalal <anshulusr@gmail.com> 18 const: gpio-mouse 20 scan-interval-ms: 23 up-gpios: 26 down-gpios: [all …]
|
| H A D | elan,ekth3000.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 13 - $ref: touchscreen/touchscreen.yaml# 25 wakeup-source: 29 vcc-supply: 38 description: touchpad is a clickpad (the entire surface is a button) 40 elan,middle-button: 42 description: touchpad has a physical middle button [all …]
|
| /linux/drivers/input/mouse/ |
| H A D | gpio_mouse.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 * @bleft: GPIO line for left button. 24 * @bmiddle: GPIO line for middle button. 25 * @bright: GPIO line for right button. 51 if (gpio->bleft) in gpio_mouse_scan() 53 gpiod_get_value(gpio->bleft)); in gpio_mouse_scan() 54 if (gpio->bmiddle) in gpio_mouse_scan() 56 gpiod_get_value(gpio->bmiddle)); in gpio_mouse_scan() 57 if (gpio->bright) in gpio_mouse_scan() 59 gpiod_get_value(gpio->bright)); in gpio_mouse_scan() [all …]
|
| H A D | vsxxxaa.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for DEC VSXXX-AA mouse (hockey-puck mouse, ball or two rollers) 4 * DEC VSXXX-GA mouse (rectangular mouse, with ball) 5 * DEC VSXXX-AB tablet (digitizer with hair cross or stylus) 7 * Copyright (C) 2003-2004 by Jan-Benedict Glaw <jbglaw@lug-owl.de> 24 * supply at +5V and -12V. 30 * | 4 --- 3 | 32 * ------- 35 * 1 (GND) 5 7 - 36 * 2 (RxD) 2 3 - [all …]
|
| H A D | cyapa.h | 6 * Copyright (C) 2014-2015 Cypress Semiconductor, Inc. 20 #define CYAPA_GEN3 0x03 /* support MT-protocol B with tracking ID. */ 63 * bit 6 - 4: Reserved 64 * bit 3 - 2: Power status 65 * bit 1 - 0: Device status 74 * Operational Finger Count/Button Flags Register 76 * bit 7 - 4: Number of touched finger 78 * bit 2: Middle Physical Button 79 * bit 1: Right Physical Button 80 * bit 0: Left physical Button [all …]
|
| H A D | sermouse.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 1999-2001 Vojtech Pavlik 44 struct input_dev *dev = sermouse->dev; in sermouse_process_msc() 45 signed char *buf = sermouse->buf; in sermouse_process_msc() 47 switch (sermouse->count) { in sermouse_process_msc() 60 input_report_rel(dev, REL_Y, -buf[1]); in sermouse_process_msc() 61 buf[0] = data - data / 2; in sermouse_process_msc() 67 input_report_rel(dev, REL_Y, buf[1] - data); in sermouse_process_msc() 74 if (++sermouse->count == 5) in sermouse_process_msc() 75 sermouse->count = 0; in sermouse_process_msc() [all …]
|
| H A D | sentelic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /*- 5 * Copyright (C) 2005-2007 Asia Vital Components Co., Ltd. 6 * Copyright (C) 2005-2012 Tai-hwa Liang, Sentelic Corporation. 31 static const char fsp_drv_ver[] = "1.1.0-K"; 73 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_read() 76 int rc = -1; in fsp_reg_read() 130 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_write() 132 int rc = -1; in fsp_reg_write() 185 if (fsp_reg_read(psmouse, FSP_REG_SYSCTL1, &v) == -1) in fsp_reg_write_enable() [all …]
|
| H A D | synaptics.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Added support for pass-through port. Special thanks to Peter Berg Larsen 13 * start merging tpconfig and gpm code to a xfree-input module 14 * adding some changes and extensions (ex. 3rd and 4th button) 17 * Copyright (c) 1998-2000 Bruce Kalk <kall@compass.com> 18 * code for the special synaptics commands (from the tpconfig-source) 61 * value which are actually negative values truncated to the 13-bit 63 * than 8184 (i.e. -8), so we treat all values greater than 8176 as 84 error = ps2_sliced_command(&psmouse->ps2dev, mode); in synaptics_mode_cmd() 89 error = ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_SETRATE); in synaptics_mode_cmd() [all …]
|
| H A D | elantech.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007-2009 Arjan Opmeer <arjan@opmeer.net> 27 if (etd->info.debug) \ 38 if (ps2_sliced_command(&psmouse->ps2dev, c) || in synaptics_send_cmd() 39 ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) { in synaptics_send_cmd() 41 return -1; in synaptics_send_cmd() 53 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_send_cmd() 59 return -1; in elantech_send_cmd() 71 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_ps2_command() 72 struct elantech_data *etd = psmouse->private; in elantech_ps2_command() [all …]
|
| /linux/Documentation/input/devices/ |
| H A D | sentelic.rst | 8 :Copyright: |copy| 2002-2011 Sentelic Corporation. 10 :Last update: Dec-07-2011 15 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward 16 page (5th button) 28 BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 30 |---------------| |---------------| |---------------| |---------------| 37 Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 38 Bit1 => Right Button, 1 is pressed, 0 is not pressed. 39 Bit0 => Left Button, 1 is pressed, 0 is not pressed. 40 Byte 2: X Movement(9-bit 2's complement integers) [all …]
|
| H A D | alps.rst | 1 ---------------------- 3 ---------------------- 6 ------------ 10 Since roughly mid-2010 several new ALPS touchpads have been released and 14 adequate. The design choices were to re-define the alps_model_data 29 --------- 32 E8-E6-E6-E6-E9. An ALPS touchpad should respond with either 00-00-0A or 33 00-00-64 if no buttons are pressed. The bits 0-2 of the first byte will be 1s 37 report" sequence: E8-E7-E7-E7-E9. The response is the model signature and is 41 model signature is always 73-02-64. To differentiate between these [all …]
|
| H A D | appletouch.rst | 3 ---------------------------------- 5 ---------------------------------- 19 Credits go to Johannes Berg for reverse-engineering the touchpad protocol, 25 ----- 33 tap for middle button mouse emulation, 3 finger tap for right button mouse 44 Option "Protocol" "auto-dev" 69 ------------- 72 noise when the temperature changes. This is especially true when you power-on
|
| H A D | atarikbd.rst | 12 provides a convenient connection point for a mouse and switch-type joysticks. 13 The ikbd processor also maintains a time-of-day clock with one second 18 The ikbd communicates with the main processor over a high speed bi-directional 41 0xF8-0xFB relative mouse position records (lsbs determined by 42 mouse button states) 43 0xFC time-of-day 67 --------------------------- 71 button being pressed or released, or motion in either axis exceeding a 84 ; where y is the right button state 85 ; and x is the left button state [all …]
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | test_mouse.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 18 # workaround https://gitlab.freedesktop.org/libevdev/python-libevdev/issues/6 40 self.middle = False 48 :param buttons: a (l, r, m) tuple of bools for the button states, 55 left, right, middle = buttons 60 if middle is not None: 61 self.middle = middle 64 middle = self.middle 81 mouse.b3 = int(middle) [all …]
|
| /linux/Documentation/input/ |
| H A D | event-codes.rst | 1 .. _input-event-codes: 36 - Used as markers to separate events. Events may be separated in time or in 41 - Used to describe state changes of keyboards, buttons, or other key-like 46 - Used to describe relative axis value changes, e.g. moving the mouse 5 units 51 - Used to describe absolute axis value changes, e.g. describing the 56 - Used to describe miscellaneous input data that do not fit into other types. 60 - Used to describe binary state input switches. 64 - Used to turn LEDs on devices on and off. 68 - Used to output sound to devices. 72 - Used for autorepeating devices. [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-appleir.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Ported to recent 2.6 kernel versions by Greg Kroah-Hartman <gregkh@suse.de> 11 * Copyright (C) 2008 Greg Kroah-Hartman <greg@kroah.com> 21 #include "hid-ids.h" 34 * 25 87 ee 83 0c - 45 * 25 87 ee ca 0d - 61 * 25 87 ee 47 0d - 75 * 25 87 ee 91 05 gives you the middle button 84 * 25 87 ee a3 04 gives you the middle button 123 * 0x00 or 0x01 ( ) key: 0 -> KEY_RESERVED in get_key() [all …]
|
| /linux/arch/sparc/include/asm/ |
| H A D | fhc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 34 #define FHC_RCS_BPOR 0x10000000 /* Last reset was due to POR button */ 35 #define FHC_RCS_BXIR 0x08000000 /* Last reset was due to XIR button */ 44 #define FHC_CONTROL_DCD 0x00008000 /* DC-->DC Converter Disable */ 53 #define FHC_CONTROL_MLED 0x00000020 /* 1=Middle LED ON */
|
| /linux/tools/perf/python/ |
| H A D | ilist.py | 2 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 18 from textual.widgets import Button, Footer, Header, Input, Label, Sparkline, Static, Tree 30 def name(self) -> str: 34 def description(self) -> str: 38 def matches(self, query: str) -> bool: 42 def parse(self) -> perf.evlist: 46 def value(self, evlist: perf.evlist, evsel: perf.evsel, cpu: int, thread: int) -> float: 56 def name(self) -> str: 59 def description(self) -> str: 73 def matches(self, query: str) -> bool: [all …]
|
| /linux/drivers/input/tablet/ |
| H A D | aiptek.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2002-2004 Bryan W. Headley <bwheadley@earthlink.net> 21 * driver for your X server, as well as the Gaiptek GUI Front-end 41 * (returned as Report 1 - relative coordinates from mouse and stylus) 49 * (returned as Report 2 - absolute coordinates from the stylus) 61 * (returned as Report 3 - absolute coordinates from the mouse) 73 * (returned as Report 4 - macrokeys from the stylus) 83 * (returned as Report 5 - macrokeys from the mouse) 158 #define AIPTEK_TILT_MIN (-128) 160 #define AIPTEK_TILT_DISABLE (-10101) [all …]
|
| /linux/samples/uhid/ |
| H A D | uhid-example.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@gmail.com> 17 * 1: Toggle left button (down, up, ...) 18 * 2: Toggle right button 19 * 3: Toggle middle button 27 * Additionally to 3 button mouse, 3 keyboard LEDs are also supported (LED_NUML, 35 * gcc -o ./uhid_test -Wall -I./include ./samples/uhid/uhid-example.c 53 * We emulate a basic 3 button mouse with wheel and 3 keyboard LEDs. This is 54 * the report-descriptor as the kernel will parse it: 61 * Button.0001 [all …]
|
| /linux/scripts/kconfig/lxdialog/ |
| H A D | menubox.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * menubox.c -- implements the menu box 12 * [ 1998-06-13 ] 14 * *) A bugfix for the Page-Down problem 22 * lxdialog is re-invoked by the Menuconfig shell script, can't 27 * one, but it would be nice if Menuconfig could make another "rm -f" 28 * just to be sure. Just try it out - you will recognise a difference! 30 * [ 1998-06-14 ] 32 * *) Now lxdialog is crash-safe against broken "lxdialog.scrltmp" files 37 * middle of the menu box, not at the bottom. [all …]
|
| /linux/arch/arm/boot/dts/marvell/ |
| H A D | armada-xp-synology-ds414.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 * The 0xf1000000 is the default used by the recent, DT-capable, U-Boot 12 * were delivered with an older version of u-boot that left internal 17 * installing it from u-boot prompt) or adjust the Devive Tree 21 /dts-v1/; 23 #include <dt-bindings/input/input.h> 24 #include <dt-bindings/gpio/gpio.h> 25 #include "armada-xp-mv78230.dtsi" 29 compatible = "synology,ds414", "marvell,armadaxp-mv78230", 30 "marvell,armadaxp", "marvell,armada-370-xp"; [all …]
|
| H A D | armada-370-synology-ds213j.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 * The 0xf1000000 is the default used by the recent, DT-capable, U-Boot 12 * were delivered with an older version of u-boot that left internal 17 * installing it from u-boot prompt) or adjust the Devive Tree 21 /dts-v1/; 23 #include <dt-bindings/input/input.h> 24 #include <dt-bindings/gpio/gpio.h> 25 #include "armada-370.dtsi" 30 "marvell,armada-370-xp"; 33 stdout-path = "serial0:115200n8"; [all …]
|
| /linux/sound/usb/caiaq/ |
| H A D | control.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info() 25 int pos = kcontrol->private_value; in control_info() 29 uinfo->count = 1; in control_info() 32 switch (cdev->chip.usb_id) { in control_info() 37 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() 38 uinfo->value.integer.min = 0; in control_info() 39 uinfo->value.integer.max = 2; in control_info() 54 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() 55 uinfo->value.integer.min = 0; in control_info() [all …]
|
| /linux/drivers/platform/olpc/ |
| H A D | olpc-xo175-ec.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for the OLPC XO-1.75 Embedded Controller. 19 #include <linux/olpc-ec.h> 51 #define EVENT_POWER_PRESSED 6 /* Power button was pressed */ 52 #define EVENT_POWER_PRESS_WAKE 7 /* Woken up with a power button */ 59 * (from http://dev.laptop.org/git/users/rsmith/ec-1.75/tree/ec_cmd.h) 244 /* Power button. */ 258 for (p = olpc_xo175_ec_cmds; p->cmd; p++) { in olpc_xo175_ec_resp_len() 259 if (p->cmd == cmd) in olpc_xo175_ec_resp_len() 260 return p->bytes_returned; in olpc_xo175_ec_resp_len() [all …]
|