Document on mouse-input

problems with keyboard, lirc or evdev

Moderator: Moderator

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Document on mouse-input

Postby Uatschitchun » Mon Jul 14, 2008 7:11 am

Hi, I've been testing mouse-input and got some questions on that ;)

What would be nice is a documentation that we can put into Wiki then!

    * Is it possible to map right-MB to second-action?
    * How to scroll a list (main menu, plugins) with only mouse?
    * How to leave a picture-slideshow?
    * How to enter a pyglet?
    * What about mouse-wheel?
    * etc. etc. ...
Lg
Roman

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Mon Jul 14, 2008 9:13 am

yes that is a pretty good idea. I'll get on it later today.

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Mon Jul 14, 2008 6:43 pm

Here it is:

http://wiki.mymediasystem.org/wiki/inde ... ouse_input

And I added a link to it here. Maybe you know a better place, if you do, please fix it :)

http://wiki.mymediasystem.org/wiki/index.php/MMS_Basics

Fredde
veteran
Posts: 288
Joined: Tue Dec 06, 2005 7:18 am
Location: Sweden

Postby Fredde » Thu Jul 17, 2008 5:37 pm

I'am working on mouse input in the python plugin and having some issues.

After looking the touch input code I found that touch areas are sorted after layer in acending order. If two or more touch areas are intersecting (in different layers) the one with the lowest layer will be choosen if you click on them. To me that seems wrong, should it not be the other way (the area in the highest layer should be choosen). This could be fixed by altering the sort order to descending.

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Thu Jul 17, 2008 6:01 pm

That sounds like a bug. Where in the code are you looking?

Fredde
veteran
Posts: 288
Joined: Tue Dec 06, 2005 7:18 am
Location: Sweden

Postby Fredde » Thu Jul 17, 2008 8:30 pm

arj wrote:That sounds like a bug. Where in the code are you looking?

touch.cpp in mms root.

Method got_input uses std::sort with method sort_areas. If you change the less then sign in sort_areas to a greater then sign the sort order will be descending.

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Thu Jul 17, 2008 9:57 pm

You're right. Nice spotting. Fixed in revno 1753.

dcsii
Posts: 3
Joined: Sat Oct 04, 2008 7:37 pm

Re: Document on mouse-input

Postby dcsii » Sat Oct 04, 2008 7:46 pm

Uatschitchun wrote:
    * Is it possible to map right-MB to second-action?
    * How to scroll a list (main menu, plugins) with only mouse?

That's exactly what I'm looking for, has any progress been made on how one would do it?

The information listed on the wiki isn't a "how to guide," like the links describe, it's more of a description of the default limitations that the mouse has.

There currently isn't any link back to this specific page.

And I might just be stupid but I don't have any mouse input when I try full screen.

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Re: Document on mouse-input

Postby acmelabs » Sun Oct 05, 2008 12:06 am

dcsii wrote:
Uatschitchun wrote:
    * Is it possible to map right-MB to second-action?
    * How to scroll a list (main menu, plugins) with only mouse?

That's exactly what I'm looking for, has any progress been made on how one would do it?

The information listed on the wiki isn't a "how to guide," like the links describe, it's more of a description of the default limitations that the mouse has.

There currently isn't any link back to this specific page.

And I might just be stupid but I don't have any mouse input when I try full screen.

Hm, very interesting.

Code: Select all

bzr log -r 1479
gives me this:

Code: Select all

------------------------------------------------------------
revno: 1479
committer: Anders Rune Jensen <anders(at)gnulinux.dk>
branch nick: mms-1.1.0
timestamp: Sat 2008-03-08 13:41:26 +0100
message:
  Changes to mouse support, especially for vnc clients (n770, n800 etc).
 
  - Add support for scrolling by just dragging your finger up or down
  - Add some more delay to prevent accidental double presses
 
  Please note that you should not be running mms in fullscreen as it
  seems to fuck up the input cordinate positions. Sometimes it will get
  stuck as a specific X or Y coordinate even though you are at a
  completely different place.

So it's actually supposed to work since march.
I've tried it in the main menu, and...it doesn't work for me either and I wasn't in fullscreen mode. Fact is, I couldn't reach the Quit button by only being dependent on mouse.
Would be cool if you file a bug report, or wait, I'm up to bug reports right now anyway, I'll do it for you.
Thanks for this report.

Regards,
Andreas

[UPDATE] Bug-Report: http://bugs.mymediasystem.org/?do=details&task_id=831

PS: Our Wiki is in a bad shape right now. It's because it was basically made for 1.0.8.x.
1.1.0 wasn't documented much yet while development was going on the last year. That's a task we're discussing right now in a different place here in this forum. But hey - help is highly welcome and appreciated.

dcsii
Posts: 3
Joined: Sat Oct 04, 2008 7:37 pm

Re: Document on mouse-input

Postby dcsii » Sun Oct 05, 2008 2:52 am

Cutting through the cynicism and sarcasm
I do apologize about writing a bug report or lack thereof. I'm fairly new to using Linux so I wasn't sure if it was me or if it truely was the programs fault. I have Ubuntu Hardy Heron and was using the 1.1.0 of MMS just to give more information.

I am interested in knowing about those two questions that I did ask about.

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: Document on mouse-input

Postby Uatschitchun » Sun Oct 05, 2008 7:58 am

Pls add a feature request for "right mouse button" as second action
Lg

Roman


Return to “input”

Who is online

Users browsing this forum: No registered users and 1 guest