Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,17 @@ internal unsafe struct XInputProKeyboardState : IInputStateTypeInfo
public byte velocity5;

[InputControl(name = "overdrive", layout = "Button", bit = 7)]
// The touchstrip isn't available through XInput, but it has to be there for ProKeyboard
// These bits are unused, so we place it here
[InputControl(name = "touchStrip", layout = "Axis", format = "BIT", sizeInBits = 7)]
public byte overdrive;

// TODO: The normalization here needs verification
[InputControl(name = "analogPedal", layout = "Axis", format = "BIT", sizeInBits = 7, parameters = "normalize,normalizeMin=1,normalizeMax=0,normalizeZero=1")]
[InputControl(name = "digitalPedal", layout = "Button", bit = 7)]
public byte pedal;

// Bytes after this point are not reported via XInput on Windows.

[InputControl(name = "touchStrip", layout = "Axis", format = "BIT", sizeInBits = 7)]
public byte touchPad;
}

[InputControlLayout(stateType = typeof(XInputProKeyboardState), displayName = "XInput Rock Band Pro Keyboard")]
Expand Down