Changed layout once more dua to prototype board
This commit is contained in:
parent
1644539467
commit
a8f5b605d3
@ -57,7 +57,7 @@ pub enum ButtonType {
|
|||||||
|
|
||||||
// Button index map:
|
// Button index map:
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// | 3 | 4 | | 0 | 1 | (2)
|
// | 0 | 1 | | 3 | 4 | (2)
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// | | 5 | 6 | 7 | | 12 | 11 | 10 | |
|
// | | 5 | 6 | 7 | | 12 | 11 | 10 | |
|
||||||
// | |
|
// | |
|
||||||
@ -72,125 +72,126 @@ pub enum ButtonType {
|
|||||||
/// Button map to HID key (four function layers)
|
/// Button map to HID key (four function layers)
|
||||||
/// Please make sure to set FnL, FnR, ModeL and ModeR at the same position for all layers
|
/// Please make sure to set FnL, FnR, ModeL and ModeR at the same position for all layers
|
||||||
/// alt. only set these at function layer 0 and set NoEventIndicated in layer 1-3.
|
/// alt. only set these at function layer 0 and set NoEventIndicated in layer 1-3.
|
||||||
|
/// Hat button 1-4 = HID B21-B24.
|
||||||
pub const MAP: [[ButtonType; NUMBER_OF_BUTTONS]; 4] = [
|
pub const MAP: [[ButtonType; NUMBER_OF_BUTTONS]; 4] = [
|
||||||
[
|
[
|
||||||
// Function layer 0
|
// Function layer 0
|
||||||
// HID Key // Button Index
|
// HID Key // Button Index
|
||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
ButtonType::FnR, // 3
|
|
||||||
ButtonType::B5, // 2
|
|
||||||
ButtonType::NoEventIndicated, // 4 Not connected to any button
|
|
||||||
ButtonType::FnL, // 0
|
ButtonType::FnL, // 0
|
||||||
ButtonType::B1, // 1
|
ButtonType::B1, // 1
|
||||||
|
ButtonType::NoEventIndicated, // 2 Not connected to any button
|
||||||
|
ButtonType::FnR, // 3
|
||||||
|
ButtonType::B6, // 4
|
||||||
ButtonType::B2, // 5
|
ButtonType::B2, // 5
|
||||||
ButtonType::B3, // 6
|
ButtonType::B3, // 6
|
||||||
ButtonType::ModeL, // 7
|
ButtonType::ModeL, // 7
|
||||||
ButtonType::B4, // 8
|
ButtonType::B4, // 8
|
||||||
ButtonType::B17, // 9
|
ButtonType::B5, // 9
|
||||||
ButtonType::B6, // 10
|
ButtonType::B7, // 10
|
||||||
ButtonType::B7, // 11
|
ButtonType::B8, // 11
|
||||||
ButtonType::ModeR, // 12
|
ButtonType::ModeR, // 12
|
||||||
ButtonType::B8, // 13
|
ButtonType::B9, // 13
|
||||||
ButtonType::B18, // 14
|
ButtonType::B10, // 14
|
||||||
ButtonType::Hat1B, // 15
|
ButtonType::Hat1B, // 15 button 21
|
||||||
ButtonType::Hat1U, // 16
|
ButtonType::Hat1U, // 16
|
||||||
ButtonType::Hat1L, // 17
|
ButtonType::Hat1R, // 17
|
||||||
ButtonType::Hat1R, // 18
|
ButtonType::Hat1D, // 18
|
||||||
ButtonType::Hat1D, // 19
|
ButtonType::Hat1L, // 19
|
||||||
ButtonType::Hat2B, // 20
|
ButtonType::Hat2B, // 20 button 22
|
||||||
ButtonType::Hat2U, // 21
|
ButtonType::Hat2U, // 21
|
||||||
ButtonType::Hat2L, // 22
|
ButtonType::Hat2R, // 22
|
||||||
ButtonType::Hat2R, // 23
|
ButtonType::Hat2D, // 23
|
||||||
ButtonType::Hat2D, // 24
|
ButtonType::Hat2L, // 24
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
// Function layer 1 (left Fn button pressed)
|
// Function layer 1 (left Fn button pressed)
|
||||||
// HID Key // Button Index
|
// HID Key // Button Index
|
||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
ButtonType::FnR, // 3
|
|
||||||
ButtonType::B5, // 2
|
|
||||||
ButtonType::NoEventIndicated, // 4 Not connected to any button
|
|
||||||
ButtonType::FnL, // 0
|
ButtonType::FnL, // 0
|
||||||
ButtonType::B9, // 1
|
ButtonType::B11, // 1
|
||||||
ButtonType::B10, // 5
|
ButtonType::NoEventIndicated, // 2 Not connected to any button
|
||||||
ButtonType::B11, // 6
|
ButtonType::FnR, // 3
|
||||||
|
ButtonType::B6, // 4
|
||||||
|
ButtonType::B12, // 5
|
||||||
|
ButtonType::B13, // 6
|
||||||
ButtonType::ModeL, // 7
|
ButtonType::ModeL, // 7
|
||||||
ButtonType::B12, // 8
|
ButtonType::B14, // 8
|
||||||
ButtonType::B19, // 9
|
ButtonType::B15, // 9
|
||||||
ButtonType::B6, // 10
|
ButtonType::B7, // 10
|
||||||
ButtonType::B7, // 11
|
ButtonType::B8, // 11
|
||||||
ButtonType::ModeR, // 12
|
ButtonType::ModeR, // 12
|
||||||
ButtonType::B8, // 13
|
ButtonType::B9, // 13
|
||||||
ButtonType::B18, // 14
|
ButtonType::B10, // 14
|
||||||
ButtonType::Hat3B, // 15
|
ButtonType::Hat3B, // 15 button 23
|
||||||
ButtonType::Hat3U, // 16
|
ButtonType::Hat3U, // 16
|
||||||
ButtonType::Hat3L, // 17
|
ButtonType::Hat3R, // 17
|
||||||
ButtonType::Hat3R, // 18
|
ButtonType::Hat3D, // 18
|
||||||
ButtonType::Hat3D, // 19
|
ButtonType::Hat3L, // 19
|
||||||
ButtonType::Hat2B, // 20
|
ButtonType::Hat2B, // 20 button 22
|
||||||
ButtonType::Hat2U, // 21
|
ButtonType::Hat2U, // 21
|
||||||
ButtonType::Hat2L, // 22
|
ButtonType::Hat2R, // 22
|
||||||
ButtonType::Hat2R, // 23
|
ButtonType::Hat2D, // 23
|
||||||
ButtonType::Hat2D, // 24
|
ButtonType::Hat2L, // 24
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
// Function layer 2 (right Fn button pressed)
|
// Function layer 2 (right Fn button pressed)
|
||||||
// HID Key // Button Index
|
// HID Key // Button Index
|
||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
ButtonType::FnR, // 3
|
|
||||||
ButtonType::B13, // 2
|
|
||||||
ButtonType::NoEventIndicated, // 4 Not connected to any button
|
|
||||||
ButtonType::FnL, // 0
|
ButtonType::FnL, // 0
|
||||||
ButtonType::B1, // 1
|
ButtonType::B1, // 1
|
||||||
|
ButtonType::NoEventIndicated, // 2 Not connected to any button
|
||||||
|
ButtonType::FnR, // 3
|
||||||
|
ButtonType::B16, // 4
|
||||||
ButtonType::B2, // 5
|
ButtonType::B2, // 5
|
||||||
ButtonType::B3, // 6
|
ButtonType::B3, // 6
|
||||||
ButtonType::ModeL, // 7
|
ButtonType::ModeL, // 7
|
||||||
ButtonType::B4, // 8
|
ButtonType::B4, // 8
|
||||||
ButtonType::B17, // 9
|
ButtonType::B5, // 9
|
||||||
ButtonType::B14, // 10
|
ButtonType::B17, // 10
|
||||||
ButtonType::B15, // 11
|
ButtonType::B18, // 11
|
||||||
ButtonType::ModeR, // 12
|
ButtonType::ModeR, // 12
|
||||||
ButtonType::B16, // 13
|
ButtonType::B19, // 13
|
||||||
ButtonType::B20, // 14
|
ButtonType::B20, // 14
|
||||||
ButtonType::Hat1B, // 15
|
ButtonType::Hat1B, // 15 button 21
|
||||||
ButtonType::Hat1U, // 16
|
ButtonType::Hat1U, // 16
|
||||||
ButtonType::Hat1L, // 17
|
ButtonType::Hat1R, // 17
|
||||||
ButtonType::Hat1R, // 18
|
ButtonType::Hat1D, // 18
|
||||||
ButtonType::Hat1D, // 19
|
ButtonType::Hat1L, // 19
|
||||||
ButtonType::Hat4B, // 20
|
ButtonType::Hat4B, // 20 button 24
|
||||||
ButtonType::Hat4U, // 21
|
ButtonType::Hat4U, // 21
|
||||||
ButtonType::Hat4L, // 22
|
ButtonType::Hat4R, // 22
|
||||||
ButtonType::Hat4R, // 23
|
ButtonType::Hat4D, // 23
|
||||||
ButtonType::Hat4D, // 24
|
ButtonType::Hat4L, // 24
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
// Function layer 3 (left + right Fn button pressed)
|
// Function layer 3 (left + right Fn button pressed)
|
||||||
// HID Key // Button Index
|
// HID Key // Button Index
|
||||||
// -----------------------------------------
|
// -----------------------------------------
|
||||||
ButtonType::FnR, // 3
|
|
||||||
ButtonType::B13, // 2
|
|
||||||
ButtonType::NoEventIndicated, // 4 Not connected to any button
|
|
||||||
ButtonType::FnL, // 0
|
ButtonType::FnL, // 0
|
||||||
ButtonType::B9, // 1
|
ButtonType::B11, // 1
|
||||||
ButtonType::B10, // 5
|
ButtonType::NoEventIndicated, // 2 Not connected to any button
|
||||||
ButtonType::B11, // 6
|
ButtonType::FnR, // 3
|
||||||
|
ButtonType::B16, // 4
|
||||||
|
ButtonType::B12, // 5
|
||||||
|
ButtonType::B13, // 6
|
||||||
ButtonType::ModeL, // 7
|
ButtonType::ModeL, // 7
|
||||||
ButtonType::B12, // 8
|
ButtonType::B14, // 8
|
||||||
ButtonType::B19, // 9
|
ButtonType::B15, // 9
|
||||||
ButtonType::B14, // 10
|
ButtonType::B17, // 10
|
||||||
ButtonType::B15, // 11
|
ButtonType::B18, // 11
|
||||||
ButtonType::ModeR, // 12
|
ButtonType::ModeR, // 12
|
||||||
ButtonType::B16, // 13
|
ButtonType::B19, // 13
|
||||||
ButtonType::B20, // 14
|
ButtonType::B20, // 14
|
||||||
ButtonType::Hat3B, // 15
|
ButtonType::Hat3B, // 15 button 23
|
||||||
ButtonType::Hat3U, // 16
|
ButtonType::Hat3U, // 16
|
||||||
ButtonType::Hat3L, // 17
|
ButtonType::Hat3R, // 17
|
||||||
ButtonType::Hat3R, // 18
|
ButtonType::Hat3D, // 18
|
||||||
ButtonType::Hat3D, // 19
|
ButtonType::Hat3L, // 19
|
||||||
ButtonType::Hat4B, // 20
|
ButtonType::Hat4B, // 20 button 24
|
||||||
ButtonType::Hat4U, // 21
|
ButtonType::Hat4U, // 21
|
||||||
ButtonType::Hat4L, // 22
|
ButtonType::Hat4R, // 22
|
||||||
ButtonType::Hat4R, // 23
|
ButtonType::Hat4D, // 23
|
||||||
ButtonType::Hat4D, // 24
|
ButtonType::Hat4L, // 24
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user