I'll admit we aren't making this obvious.
There are several schemes for sending button events. We are evolving toward a more device-independent method, but the default cfg files we ship support the legacy, device-dependent methods. (We can't break old applications in the field).
You have to tell the driver which button event you want to receive when the user presses a button. To receive V3DCMD_* (e.g., V3DCMD_VIEW_FIT), you need a cfg file that assigns your buttons to V3DCMD_* ButtonActions.
Sign up as a developer and I can email you a file that does just that. I can't send emails through the forum.
Essentially, I'll be adding this in the UI section toward the end of the file:
Code: Select all
<Category Sort="false">
<ID>UI_V3DCMD_Views</ID><Name>V3DCMD Views</Name>
<ButtonAction><ID>V3DCMD_VIEW_FIT</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_1</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_2</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_3</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_SAVE_VIEW_1</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_SAVE_VIEW_2</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_SAVE_VIEW_3</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_TOP</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_LEFT</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_RIGHT</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_FRONT</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_BOTTOM</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_BACK</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_ROLLCW</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_ROLLCCW</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_ISO1</ID></ButtonAction>
<ButtonAction><ID>V3DCMD_VIEW_ISO2</ID></ButtonAction>
</Category>
This shows these options in the GUI, which then allows you to map them to buttons. You don't need to see them in the GUI to map them, but it's a lot easier than editing xml files.
The whole idea of these cfg files is that only you the developer know what you added support for, and what you want to see in the GUI. The cfg file allows you to communicate this to your users. But we could be more helpful by providing templates to start with.