Lines Matching defs:code
486 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
487 int32_t getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code,
553 bool hasKey(int32_t code) {
554 return getEventHub()->hasScanCode(mId, code);
557 bool hasAbsoluteAxis(int32_t code) {
559 getEventHub()->getAbsoluteAxisInfo(mId, code, &info);
563 bool isKeyPressed(int32_t code) {
564 return getEventHub()->getScanCodeState(mId, code) == AKEY_STATE_DOWN;
567 int32_t getAbsoluteAxisValue(int32_t code) {
569 getEventHub()->getAbsoluteAxisValue(mId, code, &value);
587 typedef int32_t (InputMapper::*GetStateFunc)(uint32_t sourceMask, int32_t code);
588 int32_t getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc);