As the title is not very informative, I'll try and make it more clear.
Use of ICommodities->CxFilter("rawmouse leftbutton"); generates a BADFILTER errorcode. I tried to fathom the severity of the error and wrote the following little proggy:
Code: Select all
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/commodities.h>
CONST_STRPTR FD[] = {"rawmouse leftbutton"
,"rawmouse rightbutton"
,"rawmouse midbutton"
,"rawmouse relativemouse"
,"shift -alt -control a"
,"rawkey lshift alt f2"
,"rawkey control esc"
, NULL
};
int main(int argc, char *argv[])
{
int RetVal = 9;
CxObj *CO;
int32 CxErr;
uint16 i = 0;
while (FD[i] != NULL)
{
CO = CxFilter(FD[i]);
if (CO != NULL)
{
CxErr = ICommodities->CxObjError(CO);
IDOS->Printf("Error : %ld -- %s\n", CxErr, FD[i]);
ICommodities->ClearCxObjError(CO);
CxErr = 0;
ICommodities->DeleteCxObj(CO);
}
i++;
}
return RetVal;
}
Code: Select all
Error : 4 -- rawmouse leftbutton
Error : 4 -- rawmouse rightbutton
Error : 4 -- rawmouse midbutton
Error : 4 -- rawmouse relativemouse
Error : 0 -- shift -alt -control a
Error : 0 -- rawkey lshift alt f2
Error : 0 -- rawkey control esc
Btw: commodities.library has version 53.7
OldFart