More problems and Questions
Posted: 17 Mar 2016 18:05
Well, more questions.
1) How do I get the proper X,Y screen touch when getevent returns the devices normal orientation dimensions
By this I mean a phone is a normal portrait orientation device. So even though the device is in landscape mode
getevent returns X,Y based on the portrait orientation. Which of course is completely wrong for using in the Input tap x y command.
Port = 1080 x 1920
Land = 1920 x 1080
yes, X and Y are switched but
Tapping X,Y should be different depending on orientation, but getevent always returns the X,Y as portrait orientation.
So Execute root command: Input tap x y is "always" wrong when device is in landscape mode. (aside from the x,y being switched)
pointer location is always correct and this is the x,y that I thought I would get from the call...WRONG
So how do I get the same X,Y as pointer location returns? This is critical.
*****************
2). How do I get the proper X,Y from a left mouse click? Most of the devices I am coding for are non-touch devices.
Android TV boxes attached to a TV.
To me the getevent for a mouse is reporting mouse movement x,y which seems to be useless junk. No Absolute X Y.
I need the proper X,Y returned on a mouse click.
****************
3). How do I create a directory?
4). Where is the hex to decimal conversion function? getevent returns hex coordinates?
5). Is there a way to switch between apps by using the recent display?
Using Start Activity ended trigger always starts the app at the beginning. I expected a return type of action.
It also destroys all the the calling apps variables.
Thank you for your time in providing answers. #1 & #2 are critical.
1) How do I get the proper X,Y screen touch when getevent returns the devices normal orientation dimensions
By this I mean a phone is a normal portrait orientation device. So even though the device is in landscape mode
getevent returns X,Y based on the portrait orientation. Which of course is completely wrong for using in the Input tap x y command.
Port = 1080 x 1920
Land = 1920 x 1080
yes, X and Y are switched but
Tapping X,Y should be different depending on orientation, but getevent always returns the X,Y as portrait orientation.
So Execute root command: Input tap x y is "always" wrong when device is in landscape mode. (aside from the x,y being switched)
pointer location is always correct and this is the x,y that I thought I would get from the call...WRONG
So how do I get the same X,Y as pointer location returns? This is critical.
*****************
2). How do I get the proper X,Y from a left mouse click? Most of the devices I am coding for are non-touch devices.
Android TV boxes attached to a TV.
To me the getevent for a mouse is reporting mouse movement x,y which seems to be useless junk. No Absolute X Y.
I need the proper X,Y returned on a mouse click.
****************
3). How do I create a directory?
4). Where is the hex to decimal conversion function? getevent returns hex coordinates?
5). Is there a way to switch between apps by using the recent display?
Using Start Activity ended trigger always starts the app at the beginning. I expected a return type of action.
It also destroys all the the calling apps variables.
Thank you for your time in providing answers. #1 & #2 are critical.