Ehsan
Pirates vs Clones
Ok, first of all I posted this to many forums, even android forums, with no replies/solution. Also posted on the yoyogames' tech blog and like to post one here as well (faster and broader community)
I'm starting to think it's a bug but mouse_button(_pressed) gets stuck on android(Galxy S5+ 6.0+) when a large skin touches the screen. SAd fAce !
Note that released is never triggered since button is not lifted up.
Like this:
When I do this (so a large skin simultaneously touches the screen):
Scaled down with paint*
Done so far:
Devices tested on (Bug occurs Yes/No):
- Galaxy S5 (Android 6.0.1 ) - Yes
- Galaxy S7 (6.0) - Yes
- Galaxy S2 (4.1.2) - No
- Moto E (2014) (5.1) - No
- Shield Tablet 1 (6.0.1) - No
- Tablet Galaxy tab 3 Lite (4.2.2) - No
Code tried so far (so you don't have to):
- Mouse_clear
- device_mouse_check_button_release (this is not triggered since _button is not released)
- Check for multi-touch - didn't help because the issue here is that the side of your hand is registered as one giant finger
- mouse_check_buttons instead of device
- Tried on a new project - with all of the mouse functions there is (pressed, global pressed, button, global button)
- Played with SDK - deleted up to API 17 - no changes
My code:
Please, remove to other forum (if bug) where it fits best!
But is it a bug?
How can I workaround it?
I'm starting to think it's a bug but mouse_button(_pressed) gets stuck on android(Galxy S5+ 6.0+) when a large skin touches the screen. SAd fAce !
Note that released is never triggered since button is not lifted up.
Like this:
When I do this (so a large skin simultaneously touches the screen):
Scaled down with paint*
Done so far:
Devices tested on (Bug occurs Yes/No):
- Galaxy S5 (Android 6.0.1 ) - Yes
- Galaxy S7 (6.0) - Yes
- Galaxy S2 (4.1.2) - No
- Moto E (2014) (5.1) - No
- Shield Tablet 1 (6.0.1) - No
- Tablet Galaxy tab 3 Lite (4.2.2) - No
Code tried so far (so you don't have to):
- Mouse_clear
- device_mouse_check_button_release (this is not triggered since _button is not released)
- Check for multi-touch - didn't help because the issue here is that the side of your hand is registered as one giant finger
- mouse_check_buttons instead of device
- Tried on a new project - with all of the mouse functions there is (pressed, global pressed, button, global button)
- Played with SDK - deleted up to API 17 - no changes
My code:
Code:
if device_mouse_check_button(0, mb_left)
{
//device_mouse_dbclick_enable(false); //I also tried setting this to false (per step)
cnt+=0.5;
} else if device_mouse_check_button_released(0, mb_left) cnt = 0;
Please, remove to other forum (if bug) where it fits best!
But is it a bug?
How can I workaround it?
Last edited: