... | @@ -208,7 +208,7 @@ the extra input messages. The steps are as follow: |
... | @@ -208,7 +208,7 @@ the extra input messages. The steps are as follow: |
|
1. Change MiniGUI run-time configuration to specify the key `system.ial_engine`
|
|
1. Change MiniGUI run-time configuration to specify the key `system.ial_engine`
|
|
to be `custom`.
|
|
to be `custom`.
|
|
|
|
|
|
```C
|
|
```cpp
|
|
BOOL InitCustomInput (INPUT* input, const char* mdev, const char* mtype);
|
|
BOOL InitCustomInput (INPUT* input, const char* mdev, const char* mtype);
|
|
void TermCustomInput (void);
|
|
void TermCustomInput (void);
|
|
```
|
|
```
|
... | @@ -216,7 +216,7 @@ void TermCustomInput (void); |
... | @@ -216,7 +216,7 @@ void TermCustomInput (void); |
|
In `InitCustomInput` function, you should fill the operators (the callbacks)
|
|
In `InitCustomInput` function, you should fill the operators (the callbacks)
|
|
of `input` argument, the pointer to a INPUT structure:
|
|
of `input` argument, the pointer to a INPUT structure:
|
|
|
|
|
|
```C
|
|
```cpp
|
|
typedef struct tagINPUT {
|
|
typedef struct tagINPUT {
|
|
char* id;
|
|
char* id;
|
|
|
|
|
... | @@ -258,7 +258,7 @@ you should: |
... | @@ -258,7 +258,7 @@ you should: |
|
|
|
|
|
1. Fill the fields of `extra` structure, e.g.:
|
|
1. Fill the fields of `extra` structure, e.g.:
|
|
|
|
|
|
```C
|
|
```cpp
|
|
extra->event = IAL_EVENT_AXIS;
|
|
extra->event = IAL_EVENT_AXIS;
|
|
extra->wparam = MAKELONG(AXIS_SCROLL_VERTICAL, AXIS_SOURCE_WHEEL);
|
|
extra->wparam = MAKELONG(AXIS_SCROLL_VERTICAL, AXIS_SOURCE_WHEEL);
|
|
extra->wparam = MAKELONG(AXIS_SCROLL_HORIZONTAL, AXIS_SOURCE_WHEEL);
|
|
extra->wparam = MAKELONG(AXIS_SCROLL_HORIZONTAL, AXIS_SOURCE_WHEEL);
|
... | @@ -267,7 +267,7 @@ you should: |
... | @@ -267,7 +267,7 @@ you should: |
|
|
|
|
|
1. Make sure the return value of this operator have the bit of `IAL_EVENT_EXTRA` set:
|
|
1. Make sure the return value of this operator have the bit of `IAL_EVENT_EXTRA` set:
|
|
|
|
|
|
```C
|
|
```cpp
|
|
retval |= IAL_EVENT_EXTRA;
|
|
retval |= IAL_EVENT_EXTRA;
|
|
```
|
|
```
|
|
|
|
|
... | | ... | |