To use a touch-enabled button in your application, implement the following use cases:
Creating generic button
Setting button properties not specific to any state
Using button states
Setting properties for button states
Handling button events
The following use cases are optional, allowing you to set additional properties for your button:
Using long-tap events
Using skin support in buttons
The implementation file for the Generic button API is aknbutton.h.