Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09e40f64 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Address missed comments from ag/20198235

Bug: 246394583
Test: atest inputflinger_tests
Change-Id: I64448ea30e295e4d6c2a89e6ef90a7a9fe225363
parent f0ab2c87
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -108,13 +108,13 @@ void TouchButtonAccumulator::process(const RawEvent* rawEvent) {
}

void TouchButtonAccumulator::processMappedKey(int32_t scanCode, bool down) {
    int32_t outKeyCode, outMetaState;
    uint32_t outFlags;
    int32_t keyCode, metaState;
    uint32_t flags;
    if (mDeviceContext.mapKey(scanCode, mHidUsageAccumulator.consumeCurrentHidUsage(),
                              0 /*metaState*/, &outKeyCode, &outMetaState, &outFlags) != OK) {
                              0 /*metaState*/, &keyCode, &metaState, &flags) != OK) {
        return;
    }
    switch (outKeyCode) {
    switch (keyCode) {
        case AKEYCODE_STYLUS_BUTTON_PRIMARY:
            mBtnStylus = down;
            break;