Skip to content

Commit 63cc21d

Browse files
LawstorantJiri Kosina
authored andcommitted
HID: pidff: Define all cardinal directions
Will be used by ff-effect based autocentering Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 82b2496 commit 63cc21d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

drivers/hid/usbhid/hid-pidff.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,12 @@ static const u8 pidff_block_load_status[] = { 0x8c, 0x8d, 0x8e };
148148
#define PID_EFFECT_STOP 1
149149
static const u8 pidff_effect_operation_status[] = { 0x79, 0x7b };
150150

151-
/* Polar direction 90 degrees (East) */
152-
#define PIDFF_FIXED_WHEEL_DIRECTION 0x4000
151+
#define PID_DIRECTION_NORTH 0x0000
152+
#define PID_DIRECTION_EAST 0x4000
153+
#define PID_DIRECTION_SOUTH 0x8000
154+
#define PID_DIRECTION_WEST 0xc000
155+
156+
#define PIDFF_FIXED_WHEEL_DIRECTION PID_DIRECTION_EAST
153157

154158
/* AXES_ENABLE and DIRECTION axes */
155159
enum pid_axes {

0 commit comments

Comments
 (0)