Hello Guest it is February 29, 2020, 07:47:24 AM

Author Topic: emulating arrow key Jogging from plugin  (Read 1906 times)

0 Members and 1 Guest are viewing this topic.

Offline Tomas

  •  15 15
    • View Profile
emulating arrow key Jogging from plugin
« on: December 04, 2014, 05:03:02 PM »

  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;

and in mouse up

  But I'm getting no movement. Any suggestions to what I'm missing?