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

Commit 7fe57bfa authored by Jeff Brown's avatar Jeff Brown
Browse files

Disable mouse support. (DO NOT MERGE)

Change-Id: Ica9703a18195079d227caff8c2389c750559f3d0
parent b8942108
Loading
Loading
Loading
Loading
+12 −4
Original line number Original line Diff line number Diff line
@@ -605,11 +605,19 @@ void InputDevice::configure() {


    mSources = 0;
    mSources = 0;


    size_t numMappers = mMappers.size();
    for (size_t i = 0; i < mMappers.size(); i++) {
    for (size_t i = 0; i < numMappers; i++) {
        InputMapper* mapper = mMappers[i];
        InputMapper* mapper = mMappers[i];
        mapper->configure();
        mapper->configure();
        mSources |= mapper->getSources();

        uint32_t sources = mapper->getSources();
        if (sources) {
            mSources |= sources;
        } else {
            // The input mapper does not provide any sources.  Remove it from the list.
            mMappers.removeAt(i);
            delete mapper;
            i -= 1;
        }
    }
    }
}
}


@@ -1074,7 +1082,7 @@ void CursorInputMapper::configure() {
    // Configure device mode.
    // Configure device mode.
    switch (mParameters.mode) {
    switch (mParameters.mode) {
    case Parameters::MODE_POINTER:
    case Parameters::MODE_POINTER:
        mSources = AINPUT_SOURCE_MOUSE;
        mSources = 0; // AINPUT_SOURCE_MOUSE; disable mouse support
        mXPrecision = 1.0f;
        mXPrecision = 1.0f;
        mYPrecision = 1.0f;
        mYPrecision = 1.0f;
        mXScale = 1.0f;
        mXScale = 1.0f;