>It seems the the OS_Mouse SWI is not working when called
>from C code with RPCEmu 0.88 on Windows 7.
_kernel_swi_regs regs;
while (1)
{
if (_kernel_swi(OS_Mouse, ®s, ®s) ==
0)
{
printf("\004%d,%d\n\005", regs.r[0],
regs.r[1]);
}
}
The above works here using 0.8.8 on Vista with a RO5 rom image. However the
output is 'delayed' by about a second - works much better without the VDU codes
for some reason. Maybe this could indicate the problem? If you do a *pointer
what do you see while the program is running?
>Is there anyone who can look at and fix this problem? Or give
>me a workaround (which does not require program changes).
You haven't stated which version of RISC OS you're using. Some combinations of
ROM/rpcemu model have displayed problems here - in the main they could be fixed
by pressing F12 and typing *pointer. Also, what happens if you use _swix?
Regards, Richard _______________________________________________
Rpcemu mailing list
[email protected]
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu