It seems the the OS_Mouse SWI is not working when called
from C code with RPCEmu 0.88 on Windows 7.

I’ve tried the mouse capture option, but that doesn’t seem to
work at all.

The strange things is it appears to work OK in BASIC.

i.e. The BASIC loop

REPEAT
SYS “OS_Mouse” TO X,Y,B
PRINT X,Y,B
UNTIL FALSE

works, but the C equivalent

_kernel_swi_regs regs;

   while (1)
   {
    if (_kernel_swi(OS_Mouse, &regs, &regs) == 0)
    {
       printf("\004%d,%d\n\005", regs.r[0], regs.r[1]);
    }
   }

doesn’t.

Is there anyone who can look at and fix this problem? Or give
me a workaround (which does not require program changes).

Regards,
Alan


Freeh Sophia
Marketing GmbH
Emanuelstr. 3,
10317 Berlin
Deutschland
Telefon: +49 (33) 5310967
Email: [email protected]
Site: http://flug.airego.de/

_______________________________________________
Rpcemu mailing list
[email protected]
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Reply via email to