maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Do SDL apps work on Sailfish without modifications? (https://talk.maemo.org/showthread.php?t=100154)

Radu 2018-01-14 16:15

Re: Do SDL apps work on Sailfish without modifications?
 
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?

elros34 2018-01-14 20:14

Re: Do SDL apps work on Sailfish without modifications?
 
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.

Radu 2018-01-14 20:45

Re: Do SDL apps work on Sailfish without modifications?
 
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

elros34 2018-01-14 22:05

Re: Do SDL apps work on Sailfish without modifications?
 
1 Attachment(s)
It works now, event.tfinger.x is just touch position and can't be multiplied by window width.

Radu 2018-01-14 22:15

Re: Do SDL apps work on Sailfish without modifications?
 
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?

elros34 2018-01-14 22:27

Re: Do SDL apps work on Sailfish without modifications?
 
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.

Radu 2018-01-14 22:49

Re: Do SDL apps work on Sailfish without modifications?
 
Well, I posted it here: https://together.jolla.com/questions/
I hope someone will see and fix it.


All times are GMT. The time now is 07:18.

vBulletin® Version 3.8.8