Commit 99c97238 authored by rswindell's avatar rswindell
Browse files

Introduced UIFC API mode: UIFC_NOMOUSE to disable mouse detection/use

i.e. for new scfg/echocfg -k (keyboard only) option.
parent 259290dc
......@@ -123,17 +123,18 @@
#define uint unsigned int
#endif
/**************************/
/* Bits in uifcapi_t.mode */
/**************************/
#define UIFC_INMSG (1<<0) /* Currently in Message Routine non-recursive */
#define UIFC_MOUSE (1<<1) /* Mouse installed and available */
#define UIFC_MONO (1<<2) /* Force monochrome mode */
#define UIFC_COLOR (1<<3) /* Force color mode */
#define UIFC_IBM (1<<4) /* Force use of IBM charset */
#define UIFC_NOCTRL (1<<5) /* Don't allow usage of CTRL keys for movement
* etc in menus (Still available in text boxes) */
#define UIFC_NHM (1<<6) /* Don't hide the mouse pointer */
/**************************/
/* Bits in uifcapi_t.mode */
/**************************/
#define UIFC_INMSG (1<<0) /* Currently in Message Routine non-recursive */
#define UIFC_MOUSE (1<<1) /* Mouse installed and available */
#define UIFC_MONO (1<<2) /* Force monochrome mode */
#define UIFC_COLOR (1<<3) /* Force color mode */
#define UIFC_IBM (1<<4) /* Force use of IBM charset */
#define UIFC_NOCTRL (1<<5) /* Don't allow usage of CTRL keys for movement
* etc in menus (Still available in text boxes) */
#define UIFC_NHM (1<<6) /* Don't hide the mouse pointer */
#define UIFC_NOMOUSE (1<<7) /* Don't enable/use the mouse */
/*******************************/
/* Bits in uifcapi_t.list mode */
......
......@@ -403,7 +403,7 @@ int UIFCCALL uifcini32(uifcapi_t* uifcapi)
cursor=_NOCURSOR;
_setcursortype(cursor);
if(cio_api.mouse) {
if(cio_api.mouse && !(api->mode&UIFC_NOMOUSE)) {
api->mode|=UIFC_MOUSE;
uifc_mouse_enable();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment