| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | msq305 os2scr.c |
PC> from msq305.zip in os2scr.c, line 588
PC> ret = TTGetMsg(&x, &y);
PC> TTGetMsg only accepts one parameter.
PE> Thanks, I've made the change. That code is normally #def'd out
PE> which is why none of my compilers reported a problem. BFN. Paul.
Ok, there was one other part, which you may not have noticed if only going
by compiler errors, the mouse coordinates always say 0 0. Below is a fix,
just replace the sprintf( ..., x, y ) with sprintf( ..., test.x test.y )
// os2scr.c snippet
int main(void)
{
char line[255];
MOU test;
uint ret;
char text[40];
int done = 0, x, y;
long event = 0, rclick = 0, lclick = 0, repeat = 0;
TTopen();
MouseON();
while (!done)
{
ret = TTGetMsg(&x, &y);
sprintf(line, "Event: %ld", event++);
TTStrWr(line, 3, 0);
switch (ret)
{
case RMOU_CLCK:
case LMOU_CLCK:
case RMOU_RPT:
case LMOU_RPT:
case MOUSE_EVT:
case MOU_LBTUP:
case MOU_LBTDN:
case MOU_RBTUP:
case MOU_RBTDN:
sprintf(text, "Mouse pos x : %02d y : %02d", x, y);
should be...
sprintf(text, "Mouse pos x : %02d y : %02d", test.x,test.y);
not related: Ross Boys snail mailed me a diskette with an updated
complex.slt (Telix) modified to properly handle prefixxing phone numbers in
Australia. It strips/prepends your country code (n/a in US) as necessary.
I made the mods and released devil263.zip, and am going to mail the diskette
back to him with the new official release. May save you a LD call to the U.
S., but I am going to mail the disk today or tomorrow, so it will take a few
days to get there.
Phil
--- Blue Wave/Max v2.20u Beta
* Origin: * MacSavvy * Dallas * Mac * OS/2 * (214)250-4479 * (1:124/1208)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 124/1208 1204 1 396/1 270/101 105/103 42 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.