Skip navigation.
The QNX Community Portal

View topic - controlling Photon mouse events

controlling Photon mouse events

Isn't the name clear?

controlling Photon mouse events

Postby rahil » Tue Feb 02, 2010 6:33 am


I need help for implementing this article named "How to control the mouse pointer w/o mouse". This article is available at the following location ( ... 000000Smi9).

The code snippet (TmrActivateCb) mentioned in the article is said to be the actual emulation.

I don't know how to use this snippet and where to start. Should I merely copy this code snippet in .c file and compile it in IDE or Should I make a Photon AppBuilder Project and make some widgets?

Please would need your assistance. Really new to GUI.

Thanks in Advance,
Active Member
Posts: 75
Joined: Wed Feb 11, 2009 12:13 pm
Location: India

RE: controlling Photon mouse events

Postby maschoen » Tue Feb 02, 2010 4:37 pm

This is a similar project to the keyboard one where you emit keyboard events. What is different here is what you want to accomplish. This code will be part of a Photon Application. An AppBuilder project will have a main window, which may or may not be what you want. The code merely acts as a virtual mouse driver, moving the mouse around, and pressing it's buttons if desired. If you had another device, eg. a joystick and you wanted to have it function like a mouse, you could use this code.
QNX Master
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 2 guests