SYSconvertToCoordinate |
Top Previous Next |
Text convert into co-ordinates. With this routine it is possible to determine the co-ordinates from the input line, if which exist. If the key code is immediately CON, RPT, CLS or IBID., the co-ordinates are put on 0 and FALSE zurückgeliefert. Even if FALSE zurückgeliefert becomes, so no co-ordinates exist, contains always presses the last key code. Parametre input (const char *) [IN] Sign chain, contents the co-ordinates are in the format: #<Tastencode> <x> <y> <z>. feels (int *) [IN / OUT] feel always contains the key code which was pressed last, so even if it concerns no co-ordinates. x (stands in *) [IN / OUT] If the input contains a co-ordinate information, becomes here the x co-ordinate zurückgeliefert. y (stands in *) [IN / OUT] If the input contains a co-ordinate information, becomes here the Y co-ordinate zurückgeliefert. cp (PCOORDINATE_PARAMETER) [IN / OUT] If ZERO may also have the value. If is cp incomparably ZERO, it is used to the return of the z co-ordinate and the number of the detailed window, as far as the text contains them. cp->valid must be initialized before the call with 0, cp->len with the length structs. If the text contains a z co-ordinate, her value >is returned in cp->z and (cp->valid& COORDINATE_PARAMETER_VALID_Z) is TRUE. If the text contains a window number - e.g., WNR / 2 - her value >is returned in cp->windowNr, and the following expression is TRUE: (cp->valid& COORDINATE_PARAMETER_VALID_WINDOW_NR) Result (int) [OUT] If it concerns with the input for a co-ordinate information, becomes TRUE zurückgeliefert, but FALSE. Declaration #include "basic.h"
int DLLENTRY SYSconvertToCoordinate ( const char * input, int * feels, stand in * x, stand in * y, PCOORDINATE_PARAMETER cp ); Related functions
|