[LogoForum] Re: To the beginners: joystick and mouse



The message below is being cross-posted from LogoForum.

Hi Gene,
With io.dll (or inpout32.dll) one can read the game port,
and thus query the joystick buttons. But this is only half
the job; in many cases you also need the axes coordinates.
To get them you have to count for how long the port stays
at a certain state, something that Logo can´t do very
efficiently, being too slow. That´s where I´m stuck.
Cheers,
Carlos Aguiar

--- In LogoForum@xxxxxxxxxxxxxxx, "logo_programmer"
<gene_sullivan@xxxx> wrote:

--- In LogoForum@xxxxxxxxxxxxxxx, "ceaguiar" <carlos@xxxx> wrote:

Thanks Andreas and David.

I had already tried to use ingameport in win95 compatibility
mode, and it didn't work (no crash though, you are right David).

I will report the bug on SourceForge. It would be nice to have
it fixed, as the game port makes it easy to connect the PC to
temperature and light sensors (like thermistors and
photodiodes),
opening the way to many interesting science experiments.

Agreed! I'm amazed at how few people actually allow this feature of computers to go unused. I suppose many fear `blowing up' their computer if they `do something wrong' in the course of hooking up their `science fair project'.

Would it be possible to run the winmm.dll joystick routines
directly from Logo, using dllcall?

It seems that the various forms of Logo handle Input-Output differently. Recently I read a post/message about Elica Logo which informed me/us that Elica uses io.dll which is apparently a generic Input-output dll ... thus allowing Logo output to be redirected easily to printers and plotters which use io.dll.

Here is a link to the post/message I'm refering to:
  <http://groups.yahoo.com/group/elica/message/979>

Regards,
  Gene Sullivan

Regards,
Carlos Aguiar

--- In LogoForum@xxxxxxxxxxxxxxx, "david_costanzo"
<david_costanzo@xxxx> wrote:

You're being kind to MSWLogo/FMSLogo. "Doesn't seem to work"
means
"crashes", doesn't it? One thing you could try is to run
MSWLogo
in
"Win 95 compatibility mode".

 1) Log in as admin.
 2) Right-click on the MSWLogo shortcut
 3) Click the "Compatability" tab
 4) Check the "Run this program in compatibility mode for"
    checkbox.
 5) Choose "Windows 95" in the drop-list.
 6) Click OK.

I don't have a game port on my XP machine, so I can't test that
this
does what I hope it will do. My guess is that it won't work,
but
it
will stop MSWLogo from crashing.

If you really want the joystick to work on XP, file a bug on the
FMSLogo project at SourceForge and state your case.  Without
input
from other users, I end up prioritizing bug fixes based on my
own
needs. Right now, getting the joystick to work is far down on
my
list.

Best Regards,

David Costanzo





LogoForum messages are archived at:
http://groups.yahoo.com/group/LogoForum














































.