Lines Matching refs:code
92 event.type, event.code, event.value); in process()
95 processButton(event.code, event.value); in process()
98 processMotion(event.code, event.value); in process()
101 if (event.code == SYN_REPORT) { in process()
110 void MouseInputMapper::processMotion(int32_t code, int32_t value) { in processMotion() argument
111 switch (code) { in processMotion()
132 uint32_t buttonToBit(int32_t code) { in buttonToBit() argument
133 return static_cast<uint32_t>(code - BTN_MOUSE); in buttonToBit()
136 void MouseInputMapper::processButton(int32_t code, int32_t value) { in processButton() argument
140 if (code >= BTN_MOUSE && code < BTN_JOYSTICK) { in processButton()
142 mButtonValues.markBit(buttonToBit(code)); in processButton()
144 mButtonValues.clearBit(buttonToBit(code)); in processButton()
146 mUpdatedButtonMask.markBit(buttonToBit(code)); in processButton()