My system has a keypad controller for which I have implemented a device class interface for, and am reading the output of that device via calls through my instance of the device class. I also have a KeyHandler defined in my application which will eventually perform the manipulations of the GUI based on the value of certain key selections. What is the proper way to link the key value I receive via the "device read" to my hardware, to the "KeyHandler.Code" member of my KeyHandler? Should I implement an System Event Handler, which when triggered, would update the KeyHandler.Code member of the KeyHandler?
Or perhaps the read of the device driver should be called directly from the EwGetKeyCommand function and use the key value just like keyboard input.
Thank you.