350df140fa
* Initial support, no joystick functionality * remove vscode settings file * Add non-vial default keymap * Implement joystick mouse control for default and vial keymaps * Add backslash to default keymap * Add separate layout for stick-as-keys * Remove references to unused layout * Remove reference to unused custom matrix impl
25 lines
508 B
C
25 lines
508 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
/* Matrix config */
|
|
|
|
#define MATRIX_ROWS 4
|
|
#define MATRIX_COLS 12
|
|
|
|
#define MATRIX_ROW_PINS { E6, B4, B5, B2 }
|
|
#define MATRIX_COL_PINS { B3, B1, F7, F6, F5, F4, C6, D4, D0, D1, D2, D3 }
|
|
|
|
#define DIODE_DIRECTION ROW2COL
|
|
|
|
/* Joystick config */
|
|
|
|
#define ANALOG_JOYSTICK_Y_AXIS_PIN B6
|
|
#define ANALOG_JOYSTICK_X_AXIS_PIN D7
|
|
|
|
#define POINTING_DEVICE_INVERT_X
|
|
#define POINTING_DEVICE_INVERT_Y
|
|
|
|
/* Use 1000hz polling */
|
|
#define USB_POLLING_INTERVAL_MS 1
|