Active Topics

 



Notices


Reply
Thread Tools
Posts: 303 | Thanked: 145 times | Joined on Aug 2009
#11
Thank you!

I don't have a device that can run Sailfish on, which is why I wanted to know if it is worth getting one. I used to have a N900, and it was easier to develop for it.

Anyway, I have no idea why the input doesn't work. It uses normal SDL calls, normally a tap on the screen should simulate a mouse click. I guess that either this is not implemented yet, or maybe the clicks are sent with the wrong coordinates? Is there any way to get the console output of a program?
 

The Following User Says Thank You to Radu For This Useful Post:
Posts: 570 | Thanked: 976 times | Joined on Dec 2012
#12
Events are generated but there is something wrong with coordinates. For bottom right corner x/y_mouse_pos are 866643/273391 but I didn't check it more.
__________________
My Thumb repo
 

The Following 3 Users Say Thank You to elros34 For This Useful Post:
Posts: 303 | Thanked: 145 times | Joined on Aug 2009
#13
That's very interesting. I guess it's a bug with Sailfish? Because this works on Windows, Linux and Android just fine.

Can you check if it gets SDL_FINGERMOTION or SDL_FINGERDOWN events? It's around line 2500
 

The Following User Says Thank You to Radu For This Useful Post:
Posts: 570 | Thanked: 976 times | Joined on Dec 2012
#14
It works now, event.tfinger.x is just touch position and can't be multiplied by window width.
Attached Images
 
__________________
My Thumb repo
 

The Following 4 Users Say Thank You to elros34 For This Useful Post:
Posts: 303 | Thanked: 145 times | Joined on Aug 2009
#15
Ok, thanks!
That's a bug, that should be a value between 0 to 1, not an absolute value. Any idea where that should be reported?
 

The Following User Says Thank You to Radu For This Useful Post:
Posts: 570 | Thanked: 976 times | Joined on Dec 2012
#16
The sdl code should be at git.merproject.org/mer-core so maybe there. I don't know, better join to #sailfishos at IRC and ask there.
__________________
My Thumb repo
 

The Following 2 Users Say Thank You to elros34 For This Useful Post:
Posts: 303 | Thanked: 145 times | Joined on Aug 2009
#17
Well, I posted it here: https://together.jolla.com/questions/
I hope someone will see and fix it.
 

The Following 2 Users Say Thank You to Radu For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:11.