Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Do SDL apps work on Sailfish without modifications?

    Reply
    Page 2 of 2 | Prev |   1   2 |
    Radu | # 11 | 2018-01-14, 16:15 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Radu For This Useful Post:
    juiceme

     
    elros34 | # 12 | 2018-01-14, 20:14 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to elros34 For This Useful Post:
    juiceme, lal, MartinK

     
    Radu | # 13 | 2018-01-14, 20:45 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Radu For This Useful Post:
    juiceme

     
    elros34 | # 14 | 2018-01-14, 22:05 | Report

    It works now, event.tfinger.x is just touch position and can't be multiplied by window width.

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Images
     
    The Following 4 Users Say Thank You to elros34 For This Useful Post:
    juiceme, lal, MartinK, Radu

     
    Radu | # 15 | 2018-01-14, 22:15 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Radu For This Useful Post:
    juiceme

     
    elros34 | # 16 | 2018-01-14, 22:27 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to elros34 For This Useful Post:
    juiceme, MartinK

     
    Radu | # 17 | 2018-01-14, 22:49 | Report

    Well, I posted it here: https://together.jolla.com/questions/
    I hope someone will see and fix it.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to Radu For This Useful Post:
    juiceme, MartinK

     
    Page 2 of 2 | Prev |   1   2 |
vBulletin® Version 3.8.8
Normal Logout