Hi,
I'm trying to emulate the arrow key Jogging from plugin. When I get a mouse down I want to start, and stop when released.
in my mouse down I'm doing:
Engine->Axis[ m_Axis ].MaxVelocity = (Some Velocity)
Engine->Axis[ m_Axis ].Acceleration = MainPlanner->Accs[ m_Axis ];
Engine->Axis[ m_Axis ].MasterVelocity = MainPlanner->Vels[ m_Axis ];
Engine->Axis[ m_Axis ].Dec = false;
Engine->Axis[ m_Axis ].Jogging = true;
Engine->Axis[ m_Axis ].JoggDir = m_Dir;
Code("DOJOG");
and in mouse up
Code("ENDJOG");
But I'm getting no movement. Any suggestions to what I'm missing?
Thanks,
Tomas.