Author Topic: Right click now working without extra hardware  (Read 11873 times)

Offline tunell

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
on: February 22, 2008, 07:08:06 PM
I spent about an hour on the code and set up right clicks at 1 second, like a PDA, it seems to work fine...
except in Excel, don't know why,
anyway will post a dowload link when i get somewhere to host it.



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Reply #1 on: February 22, 2008, 08:01:28 PM
Hi,

I also implemented right clicks without extra hardware in my Java version of Wiimote Whiteboard.
You can have a look at the source code (file WiimoteDataHandler.java) or try it out in case you're interested:
http://www.uweschmidt.org/wiimote-whiteboard

Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline ZaPPZion

  • *
  • Posts: 137
  • Karma: +11/-1
    • View Profile
Reply #2 on: February 23, 2008, 03:32:08 AM
awesome, great work:) (still have to test it, but it definately sounds promising)



Offline Der Wichtel

  • *
  • Posts: 26
  • Karma: +0/-1
    • View Profile
    • my site
Reply #3 on: February 23, 2008, 11:47:42 AM
I can host up to 1.5mb ^^



Offline insomnia

  • *
  • Posts: 26
  • Karma: +3/-0
    • View Profile
Reply #4 on: February 23, 2008, 02:18:02 PM
I've made kinda the same right click function, but i've found some problems(my version waited 3 seconds before a right click).

- Loss of responsiveness (Timeout for the right click check)
- Loss of movement (Because the right click kicked in)

Do you have a solution to these options? And i don't like it at 1 second because it's right clicks to fast but thats just my opinion.

But i'm working on a version of the wiiwhiteboard with has some options, so you can set your left/right click style etc... this way you can turn it off if you want to move your windows.

I can host it for you, if you still needs a host.



Offline The Rick

  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Reply #5 on: February 24, 2008, 11:26:41 PM
This was the type of right-click that I had been believe would be the best solution. Let me know if you still need a host or whenever you get the program up.



Offline jango62301

  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Reply #6 on: February 25, 2008, 07:20:00 AM
Please let me know if this get's hosted somewhere, I would love to give this a shot.  I stink at code writing :(



Offline Salamando

  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reply #7 on: February 26, 2008, 11:25:13 AM
This was a good code change for mose people but I don't think it will work for my particular case.  I really liked the idea of a system tray icon that you click and then your next click is a right click.  Has anyone actually implemented this change?  As a high school teacher, I like the ability to open Paint and actually draw equations, so holding down the button for a right click would not work for my case because I have to hold it anyway to draw.  Also, I like to draw on slides in powerpoint since someone fixed the code to allow that in Powerpoint 2007. The tray icon won't allow for a write click in powerpoint but I can live with that.



Offline The Rick

  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Reply #8 on: February 26, 2008, 12:24:01 PM
This was a good code change for mose people but I don't think it will work for my particular case.  I really liked the idea of a system tray icon that you click and then your next click is a right click.  Has anyone actually implemented this change?  As a high school teacher, I like the ability to open Paint and actually draw equations, so holding down the button for a right click would not work for my case because I have to hold it anyway to draw.  Also, I like to draw on slides in powerpoint since someone fixed the code to allow that in Powerpoint 2007. The tray icon won't allow for a write click in powerpoint but I can live with that.


If the code is implemented in such as way as to emulate the right-click functionality of a mobile device, then the hold-and-click for right click will only activate if the pointer isn't moving.  So if you are in the process of drawing or writing while holding down the mouse, then it won't attempt to begin right-clicking.

At least, that's how I hoped they programmed it.  Won't know till we see the code.



Offline fnf

  • *
  • Posts: 70
  • Karma: +2/-0
    • View Profile
Reply #9 on: March 01, 2008, 07:15:31 AM
This was a good code change for mose people but I don't think it will work for my particular case.  I really liked the idea of a system tray icon that you click and then your next click is a right click.  Has anyone actually implemented this change?  As a high school teacher, I like the ability to open Paint and actually draw equations, so holding down the button for a right click would not work for my case because I have to hold it anyway to draw.  Also, I like to draw on slides in powerpoint since someone fixed the code to allow that in Powerpoint 2007. The tray icon won't allow for a write click in powerpoint but I can live with that.


If the code is implemented in such as way as to emulate the right-click functionality of a mobile device, then the hold-and-click for right click will only activate if the pointer isn't moving.  So if you are in the process of drawing or writing while holding down the mouse, then it won't attempt to begin right-clicking.

At least, that's how I hoped they programmed it.  Won't know till we see the code.

I'm one of the developers of Linux Whiteboard. You can read about some of its features in the newly-opened Linux forum. The basic idea is too introduce some tolerance between dragging and right-clicking. The code is GPL-ed and easy to understand (I hope).

Download Linux Whiteboard from Linux Whiteboard homepage


Offline fnf

  • *
  • Posts: 70
  • Karma: +2/-0
    • View Profile
Reply #10 on: March 01, 2008, 07:19:33 AM
I've made kinda the same right click function, but i've found some problems(my version waited 3 seconds before a right click).

- Loss of responsiveness (Timeout for the right click check)
- Loss of movement (Because the right click kicked in)

Do you have a solution to these options? And i don't like it at 1 second because it's right clicks to fast but thats just my opinion.

But i'm working on a version of the wiiwhiteboard with has some options, so you can set your left/right click style etc... this way you can turn it off if you want to move your windows.

I can host it for you, if you still needs a host.

You will need to implement that in a separate thread. You may want to look at the source code of Linux Whiteboard for an idea. It is written in standard C++ so should be easy to port it to other systems (no change is needed in *NIX, some thread functions changes are needed for Windows).

Download Linux Whiteboard from Linux Whiteboard homepage


Offline 7em1r

  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Reply #11 on: May 01, 2008, 12:03:37 PM
@UWE: Can you explain how the change you have made for the right clicking be implemented in Johny's code ?
Since your application is based on Johny's code, which file is correspondent to the file WiimoteDataHandler.java that you have written ?




Offline 7em1r

  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Reply #12 on: May 01, 2008, 01:16:55 PM
Hi,

I also implemented right clicks without extra hardware in my Java version of Wiimote Whiteboard.
You can have a look at the source code (file WiimoteDataHandler.java) or try it out in case you're interested:
http://www.uweschmidt.org/wiimote-whiteboard

Uwe
Can you explain how the change you have made for the right clicking be implemented in Johny's code ?
Since your application is based on Johny's code, which file is correspondent to the file WiimoteDataHandler.java that you have written ?



Offline UndCon

  • Support Admin
  • *
  • Posts: 566
  • Karma: +11/-3
    • View Profile
    • UndCon
Reply #13 on: May 01, 2008, 02:51:07 PM
tunell: I can host the files for you - send me a PM

//UndCon



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Reply #14 on: May 02, 2008, 06:55:32 AM
Hi,

I also implemented right clicks without extra hardware in my Java version of Wiimote Whiteboard.
You can have a look at the source code (file WiimoteDataHandler.java) or try it out in case you're interested:
http://www.uweschmidt.org/wiimote-whiteboard

Uwe
Can you explain how the change you have made for the right clicking be implemented in Johny's code ?
Since your application is based on Johny's code, which file is correspondent to the file WiimoteDataHandler.java that you have written ?

My software is based on Johnny's app in a way that it offers the same functionality. But I'm actually not using his source code at all. So there's no equivalence between source code fragments.
I implemented right-clicks with the so-called strategy pattern, which enables to change behavior during run-time (one could have several "right-click behaviors"). This is possibility is not used at the moment, since people seem to be happy with the current implementation.
You can find the implementation in my source code in the folder org/uweschmidt/wiimote/whiteboard/mouse/rightclick.
It gets called by org/uweschmidt/wiimote/whiteboard/WiimoteDataHandler.java.
The whole thing is maybe a little difficult to understand since it's not documented. I can explain it in more details upon request...

Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.