summaryrefslogtreecommitdiffhomepage
path: root/projects/CodeBlocks
diff options
context:
space:
mode:
authorDoyle <[email protected]>2020-03-24 23:23:34 +1100
committerGitHub <[email protected]>2020-03-24 13:23:34 +0100
commitda836a732c0ecbf1ec9254d0007dec854e79f1f3 (patch)
tree71c22f7548bbce05d47e5faafce0a2e91101b70c /projects/CodeBlocks
parent6bab884d1de8b1aadd89e79c26d6294eb22eaece (diff)
downloadraylib-da836a732c0ecbf1ec9254d0007dec854e79f1f3.tar.gz
raylib-da836a732c0ecbf1ec9254d0007dec854e79f1f3.zip
Android: Better track touch input returned from IsMouse*() (#1144)
* Android: Better track touch input returned from IsMouse*() Switch to actually tracking touch input to use for "mouse" input rather than the gestures system. The gesture system as an abstraction ontop of raw touch input loses some information needed to map to "mouse" input. Before, - IsMouseButtonReleased() triggers immediately after the initial touch (because GESTURE_TAP activates immediately on touch) instead of waiting for the touch to be released. - IsMouseButtonUp() returns false, when it should just be the opposite of IsMouseButtonDown(). - IsMouseButtonDown() returns true only after GESTURE_HOLD (which activates after some period of time after GESTURE_TAP), when instead it should just be true whenever there is touch input i.e. gesture != GESTURE_NONE or alternatively when any input is received on the screen. After this PR, touches map closer to mouse input. - IsMouseButtonReleased() triggers when touch is released (last frame was touched, this frame not touched). - IsMouseButtonUp() returns the opposite of IsMouseButtonDown() - IsMouseButtonDown() is true when (AMOTION_EVENT_ACTION_DOWN || AMOTION_EVENT_ACTION_MOVE) and false when (AMOTION_EVENT_ACTION_UP) * RPI: Include index check for RPI in GetTouchPosition()
Diffstat (limited to 'projects/CodeBlocks')
0 files changed, 0 insertions, 0 deletions