Home
last modified time | relevance | path

Searched refs:lastButtonState (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.cpp32 int32_t lastButtonState, int32_t currentButtonState, int32_t buttonState, int32_t keyCode) { in synthesizeButtonKey() argument
34 if ((action == AKEY_EVENT_ACTION_DOWN && !(lastButtonState & buttonState) && in synthesizeButtonKey()
36 (action == AKEY_EVENT_ACTION_UP && (lastButtonState & buttonState) && in synthesizeButtonKey()
92 int32_t lastButtonState, int32_t currentButtonState) { in synthesizeButtonKeys() argument
95 policyFlags, lastButtonState, currentButtonState, in synthesizeButtonKeys()
98 policyFlags, lastButtonState, currentButtonState, in synthesizeButtonKeys()
DCursorInputMapper.cpp242 int32_t lastButtonState = mButtonState; in sync() local
246 bool wasDown = isPointerDown(lastButtonState); in sync()
258 bool buttonsChanged = currentButtonState != lastButtonState; in sync()
259 int32_t buttonsPressed = currentButtonState & ~lastButtonState; in sync()
260 int32_t buttonsReleased = lastButtonState & ~currentButtonState; in sync()
317 mSource, *mDisplayId, policyFlags, lastButtonState, in sync()
323 int32_t buttonState = lastButtonState; in sync()
405 mSource, *mDisplayId, policyFlags, lastButtonState, in sync()
DTouchCursorInputMapperCommon.h40 int32_t lastButtonState, int32_t currentButtonState);