Lines Matching +full:tablet +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
17 * XP-Pen devices return a descriptor with the values the driver should use when
21 * ----- ----- ----- -----
23 * | | | `- Resolution: 5080 (13d8)
24 * | | `- Maximum pressure: 8191 (1FFF)
25 * | `- Logical maximum Y: 15240 (3B88)
26 * `- Logical maximum X: 20320 (4F60)
41 * The tablet send these values when the pad buttons are pressed individually:
44 * Button 1: 06 00 05 00 00 00 00 00 -> b
45 * Button 2: 06 00 08 00 00 00 00 00 -> e
46 * Button 3: 06 04 00 00 00 00 00 00 -> LAlt
47 * Button 4: 06 00 2c 00 00 00 00 00 -> Space
48 * Button 5: 06 01 16 00 00 00 00 00 -> LControl + s
49 * Button 6: 06 01 1d 00 00 00 00 00 -> LControl + z
56 * Buttons 2 and 1: 06 00 08 05 00 00 00 00 -> e + b
64 * Buttons 3 and 5: 06 05 16 00 00 00 00 00 -> LControl + LAlt + s
65 * -- --
67 * | `- Button 5 (0x16)
68 * `- 0x05 = 0101. Button 3 is pressed
82 0x09, 0x39, /* Usage (Tablet Function Keys), */
107 0x09, 0x46, /* Usage (Tablet Pick), */
127 0x55, 0x0d, /* Unit Exponent (-3), */
160 if (hctx->size == RDESC_SIZE_PAD) { in SEC()
163 } else if (hctx->size == RDESC_SIZE_PEN) { in SEC()
212 * The device has 2 modes: The compatibility mode, enabled by default, in probe()
213 * and the raw mode, that can be activated by sending a buffer of magic in probe()
216 * Depending on the mode, different interfaces of the device are used: in probe()
217 * - First interface: Pad in compatibility mode in probe()
218 * - Second interface: Pen in compatibility mode in probe()
219 * - Third interface: Only used in raw mode in probe()
221 * We'll use the device in compatibility mode. in probe()
223 ctx->retval = ctx->rdesc_size != RDESC_SIZE_PAD && in probe()
224 ctx->rdesc_size != RDESC_SIZE_PEN; in probe()
225 if (ctx->retval) in probe()
226 ctx->retval = -EINVAL; in probe()