Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » Wiimote Projects » Project Videos » Whiteboard » Whiteboard app with left click right click or move only
Pages: [1]
  Print  
Author Topic: Whiteboard app with left click right click or move only  (Read 7717 times)
0 Members and 1 Guest are viewing this topic.
Guru
*
Karma: +16/-0
Posts: 177
Offline Offline
atomriot@hotmail.com colbzilla View Profile
« on: January 19, 2008, 05:10:17 AM »

<a href="http://www.youtube.com/watch?v=23S4vMLmRCg" target="_blank">http://www.youtube.com/watch?v=23S4vMLmRCg</a>
this is my app with the addition of left click or right click.




i added mouse enter and exit to the black box there.
when you move over it, the mouse behavior will change from move only, to left click to right click.

this was accomplished by having this instead of the normal leftdown part

Code:
if (cursorControl)
{
    switch (mouseBehavior)
    {
        case 1:
            mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
            break;
        case 2:
            mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);
            break;
        default:
            break;
    }
}

you also have to do this for the leftup part thats a little further down the page

this was in the mainform.cs
Logged

Details, details. Things to do. Things to get done. Don't bother me with details, just tell me when they're done.
--
James Lionel Price

*
Karma: +0/-0
Posts: 8
Offline Offline
View Profile
« Reply #1 on: January 19, 2008, 03:14:02 PM »

You had a good idea !!

Possible improvement :
When you move off-screen
- on the right, the mouse behavior will change from right click.
- on the left , the mouse behavior will change from left click
- At the bottom, the mouse behavior will change from move only

Can you test this idea ?
please
If it works : can you up-load the new program change with this idea (or send me)
Thanks
« Last Edit: January 19, 2008, 05:54:05 PM by coucfr » Logged
Guru
*
Karma: +16/-0
Posts: 177
Offline Offline
atomriot@hotmail.com colbzilla View Profile
« Reply #2 on: January 19, 2008, 07:22:16 PM »

the problem with that is if you "move it off screen" you cannot really do that unless you have multiple monitors. you would just be moving it to the bottom or moving it to the sides. also, if you were using this as a large whiteboard projection style app, it would be very aggravating to have to bend down to change the mouse, or walk in front of the projector and go to the other side to change the mouse.

just my thoughts
Logged

Details, details. Things to do. Things to get done. Don't bother me with details, just tell me when they're done.
--
James Lionel Price

*
Karma: +0/-0
Posts: 8
Offline Offline
View Profile
« Reply #3 on: January 20, 2008, 11:08:07 PM »

and if you move it to :
- the right bottom for the right clic (1/3 screen)
- the middle from move only (1/3 screen)
- the left bottom for the left clic (1/3 screen)

Logged
Guru
*
Karma: +16/-0
Posts: 177
Offline Offline
atomriot@hotmail.com colbzilla View Profile
« Reply #4 on: January 21, 2008, 12:32:29 AM »

yeah i thought about having a few semi transparent objects sitting in a configurable position on the screen and you click in them to change the. it was just faster to implement this method. heh
Logged

Details, details. Things to do. Things to get done. Don't bother me with details, just tell me when they're done.
--
James Lionel Price

*
Karma: +0/-0
Posts: 7
Offline Offline
View Profile Email
« Reply #5 on: January 21, 2008, 05:21:44 AM »

Hrm.  I really like the idea of having it be three separate objects that you can select.  I envision perhaps a small window that just has 3 circles on it (or squares, or triangles, any kind of shape really), each a different color.  When you enter the mouse on this part, it selects the certain style of input.  For example, red shape is right click, blue shape is left click, green shape is move only. 

Having it in the window allows you to bring the box with you if you are on a larger projection, or must move to a different position on the board to keep access easy.
Logged
Guru
*
Karma: +16/-0
Posts: 177
Offline Offline
atomriot@hotmail.com colbzilla View Profile
« Reply #6 on: January 21, 2008, 05:25:10 AM »

this is very easy to accomplish. simply expand the current window and add a few panels or picture boxes or any control really. then add a mouse enter event for each one. and on the mouse enter event, change whatever variable you are using to keep track of things.
Logged

Details, details. Things to do. Things to get done. Don't bother me with details, just tell me when they're done.
--
James Lionel Price

*
Karma: +0/-0
Posts: 3
Offline Offline
View Profile
« Reply #7 on: February 01, 2008, 10:27:36 PM »

I don't know if you've thought of this or not.

Many years ago we had a projector by Proxima, I don't even know if they are still in business today, but one of the features they had was the ability to use a wand or laser as the mouse. The wand was very much like the ir pens I see being created for these Wiimote whiteboards.

Anyway, the mouse functioned by a strobe pattern with the button clicks on the wand/laser. With the light on the system would move the mouse to the point of light. So the mouse move feature of your app would be the "normal" tracking of the IR light source. In order to left click you would press a button that triggered a fast double flash of the light, the system would detect the flash and trigger the mouse click, then return the tracking back to move. The right click would be a triple flash with the light source.

Could it be possible to track a flashing point of light and trigger the correct responce with your application?
Logged
*
Karma: +3/-0
Posts: 26
Offline Offline
View Profile Email
« Reply #8 on: February 09, 2008, 05:47:52 PM »

Ive been thinking about the right click, and if a can remember right i had a windows mobile PDA a few years ago which had right click when you hold the corsur on one place for a couple of seconds, now that would be a nice solution to the right click problem, just hold the corsur on his place for 2/3 seconds and you have a right click. Tomorrow i gonna work on the source and try to realise this.
« Last Edit: February 09, 2008, 06:19:15 PM by insomnia » Logged
*
Karma: +0/-1
Posts: 9
Offline Offline
elemental_tj@hotmail.com View Profile WWW
« Reply #9 on: February 10, 2008, 02:03:17 AM »

Wow! This is great! Nice job, sir. Smiley

You mind attaching it somewhere? I don't
have any VB, C#, C++, or otherwise apps
and I don't plan on getting them. Tongue
+karma.
Logged


Pages: [1]
  Print  
 
Jump to:  

Clicky Web Analytics