Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » Forum » Wiimote Projects » Wiimote Interactive Whiteboard » Right click now working without extra hardware
Pages: [1] 2
  Print  
Author Topic: Right click now working without extra hardware  (Read 3558 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 1
Offline Offline
View Profile
« on: February 22, 2008, 08: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.
Logged
*
Karma: +10/-0
Posts: 121
Offline Offline
View Profile WWW
« Reply #1 on: February 22, 2008, 09: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
Logged

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.
Guru
*
Karma: +11/-1
Posts: 137
Offline Offline
View Profile
« Reply #2 on: February 23, 2008, 04:32:08 AM »

awesome, great work:) (still have to test it, but it definately sounds promising)
Logged
*
Karma: +0/-1
Posts: 26
Offline Offline
View Profile WWW
« Reply #3 on: February 23, 2008, 12:47:42 PM »

I can host up to 1.5mb ^^
Logged
*
Karma: +3/-0
Posts: 26
Offline Offline
View Profile Email
« Reply #4 on: February 23, 2008, 03: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.
Logged
*
Karma: +0/-0
Posts: 7
Offline Offline
View Profile Email
« Reply #5 on: February 25, 2008, 12:26:41 AM »

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.
Logged
*
Karma: +0/-0
Posts: 7
Offline Offline
View Profile Email
« Reply #6 on: February 25, 2008, 08: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 Sad
Logged
*
Karma: +0/-0
Posts: 2
Offline Offline
View Profile Email
« Reply #7 on: February 26, 2008, 12:25:13 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.
Logged
*
Karma: +0/-0
Posts: 7
Offline Offline
View Profile Email
« Reply #8 on: February 26, 2008, 01: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.
Logged
*
Karma: +2/-0
Posts: 70
Offline Offline
View Profile Email
« Reply #9 on: March 01, 2008, 08: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).
Logged

Download Linux Whiteboard from Linux Whiteboard homepage
*
Karma: +2/-0
Posts: 70
Offline Offline
View Profile Email
« Reply #10 on: March 01, 2008, 08: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).
Logged

Download Linux Whiteboard from Linux Whiteboard homepage
*
Karma: +0/-0
Posts: 5
Offline Offline
View Profile Email
« Reply #11 on: May 01, 2008, 01: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 ?

Logged
*
Karma: +0/-0
Posts: 5
Offline Offline
View Profile Email
« Reply #12 on: May 01, 2008, 02: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 ?
Logged
Support Admin
*
Karma: +11/-2
Posts: 564
Offline Offline
View Profile
« Reply #13 on: May 01, 2008, 03:51:07 PM »

tunell: I can host the files for you - send me a PM

//UndCon
Logged

*
Karma: +10/-0
Posts: 121
Offline Offline
View Profile WWW
« Reply #14 on: May 02, 2008, 07: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
Logged

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.
Pages: [1] 2
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Clicky Web Analytics