Jump to content
IGNORED

Circling back around to InterLisp/65 - anyone figure out the stick function?


svhovater

Recommended Posts

hi folks

Working with interlisp/65 v2.5, and was checking out functionality. I thought it would be interesting to write something that would read the position of joystick 0.

Unfortunately, when I enter

(stick 0)

 

I get a string of atascii back instead of the number I expected.

So.. if we invoke (car (unpack (stick 0))) we get the first character of the atascii string. If I move the joystick, and execute again, I get a different character.

I don't see a way to turn that character into a number.

 

ideas?

Link to comment
Share on other sites

What characters are you getting for all positions, as long as the character is different and consistent in all positions

then just use the values returned, I don't know Lisp, but can you use "define" alias the values you want ? 

 

i.e. #DEFINE UP <character returned from (stick 0)>

etc.

etc. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...