ok, so I have a projector, webcam, any number of laser pointers, and my computer. I have programmed an app that allows the user to move the mouse around using a laser pointer. I have general mouse movement down, and now I am working on left and right clicking.
So far, here are some ideas I have had
1) If user turns off laser pointer, then turns it back on around the same spot within a certain time period, then register a left click. If they turn it off for a little longer, then register a right click.
2) Using two or more laser pointers. Once the program detects the first laser pointer, then look in the immediate area for a second laser pointer. If it finds it, depending on where it was (if it was vertical, for example) then register a left click. If the second pointer was horizontal to the first pointer, for example, then register a right click.
The second solution is problematic for a few reasons. First of all, it makes for awkward movement to have to deal with and orient a second laser pointer, even if it is attached to the first one.
Any thoughts or other ideas as to how I could work left and right clicking with this?
So far, here are some ideas I have had
1) If user turns off laser pointer, then turns it back on around the same spot within a certain time period, then register a left click. If they turn it off for a little longer, then register a right click.
2) Using two or more laser pointers. Once the program detects the first laser pointer, then look in the immediate area for a second laser pointer. If it finds it, depending on where it was (if it was vertical, for example) then register a left click. If the second pointer was horizontal to the first pointer, for example, then register a right click.
The second solution is problematic for a few reasons. First of all, it makes for awkward movement to have to deal with and orient a second laser pointer, even if it is attached to the first one.
Any thoughts or other ideas as to how I could work left and right clicking with this?