Welcome, Guest. Please login or register.

Author Topic: Joystick connection (C64/Amiga)  (Read 3795 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline aMIGA_dUDETopic starter

  • Jr. Member
  • **
  • Join Date: Mar 2002
  • Posts: 67
    • Show only replies by aMIGA_dUDE
    • http://www.andrewguard.com/
Joystick connection (C64/Amiga)
« on: June 11, 2011, 03:14:40 PM »
Having a debate with a friend about joysticks on the C64 and Amiga. To keep it short this what it all about.

It is possible for software to know if there Joystick connect or not. What is being claimed that C64/Amiga were able to detect if joystick was connected or disconnected.
So lets say you where playing a 2 player game. Both players where using there own joystick's and mid way thought the game 1 of the plays joysticks got disconnect from the computer. The C64/Amiga was able to detect that 1 of plays joystick got disconnected. The software would know this had happen as such it would pause the game.

The only game could think of that happen on in was Xenon 2.
 

Offline tone007

Re: Joystick connection (C64/Amiga)
« Reply #1 on: June 11, 2011, 03:23:44 PM »
I was pretty sure those digital joysticks are just a bunch of momentary switches wired directly to the pins of the connector, and at rest all connections are open, so I don't see how a joystick could be detected.
3 Commodore file cabinets, 2 Commodore USB turntables, 1 AmigaWorld beer mug
Alienware M14x i7 laptop running AmigaForever
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Joystick connection (C64/Amiga)
« Reply #2 on: June 11, 2011, 03:29:39 PM »
There's no way to detect a joystick if it's not used.

An Atari style joystick consists of five switches - four directional, one fire button (possibly two). Each switch connects the according sense line to ground when activated. Without moving the stick or pressing the button all sense lines are pulled high and there's no difference between an inactive stick and none present.
 

Offline save2600

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 3261
  • Country: us
    • Show only replies by save2600
Re: Joystick connection (C64/Amiga)
« Reply #3 on: June 11, 2011, 04:40:41 PM »
Weird scenario, unless you're talking about the joystick accidentally coming unplugged because someone either tripped on the cord or got a little too excited during gameplay.

Perhaps your friend is confusing a "smart" Amiga joystick port with the disk drives? Yep, Amiga's know when a 3-1/2" disk has been inserted or removed  :lol:

A possibility for a smart joystick port would be if the joystick had circuitry inside that was powered by or looped the +5v line back into the computer. The software to sense that though would either be built into Kickstart or through each piece of software individually. You can see where this concept would be pretty frivoulous in practice as it's all too obvious to the user whether something is plugged in or not.

-edit-

Good one lsmart! lol
« Last Edit: June 11, 2011, 04:47:22 PM by save2600 »
 

Offline lsmart

  • Sr. Member
  • ****
  • Join Date: Jun 2009
  • Posts: 433
    • Show only replies by lsmart
Re: Joystick connection (C64/Amiga)
« Reply #4 on: June 11, 2011, 04:44:29 PM »
In a game it is farly easy to detect an unplugged joystick: The player doesn´t move ;-)
 

Offline runequester

  • It\'s Amiga time!
  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 3695
    • Show only replies by runequester
Re: Joystick connection (C64/Amiga)
« Reply #5 on: June 11, 2011, 04:48:48 PM »
Before I got some switch boxes, I've unplugged and swapped out joystick and mice plenty of time and I can't say I've ever noticed a game react to that
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: Joystick connection (C64/Amiga)
« Reply #6 on: June 11, 2011, 06:09:59 PM »
As everyone else has said, there is nothing in a standard joystick that would enable software to detect on either the C64 or Amiga... :)

Just played Xenon 2 on the miggy and nope there is no game pause if you unplug the joystick... :)

So c'mon spill the beans which one of you claimed it would in this wee debate you or your friend... :)
 

Offline motrucker

Re: Joystick connection (C64/Amiga)
« Reply #7 on: June 11, 2011, 09:04:51 PM »
Quote from: runequester;644244
Before I got some switch boxes, I've unplugged and swapped out joystick and mice plenty of time and I can't say I've ever noticed a game react to that

You are playing with fire. That's one of the best ways to blow out a CIA chip!
A2000 GVP 40MHz \'030, 21Mb RAM SD/FF, 2 floppies, internal CD-ROM drive, micromys v3 w/laser mouse
A1000 Microbotics Starboard II w/2Mb 1080, & external floppy (AIRdrive)
C-128 w/1571, 1750, & Final Cartridge III+
 

Offline runequester

  • It\'s Amiga time!
  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 3695
    • Show only replies by runequester
Re: Joystick connection (C64/Amiga)
« Reply #8 on: June 11, 2011, 10:12:29 PM »
Quote from: motrucker;644292
You are playing with fire. That's one of the best ways to blow out a CIA chip!


Thats why I got a pair of switch thingies to have 2 devices plugged into one port :)
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: Joystick connection (C64/Amiga)
« Reply #9 on: June 11, 2011, 10:26:37 PM »
Disconnecting a joystick while the miggie is on is perfectly safe as long as you don't have any of the fire buttons or directional switches pressed on when doing so... :)
 

Offline psxphill

Re: Joystick connection (C64/Amiga)
« Reply #10 on: June 11, 2011, 11:45:45 PM »
Quote from: motrucker;644292
You are playing with fire. That's one of the best ways to blow out a CIA chip!

the biggest problem is when you touch all the pins with your finger trying to find the socket when plugging the joystick in.
 

Offline kedawa

  • Hero Member
  • *****
  • Join Date: Jul 2004
  • Posts: 700
    • Show only replies by kedawa
Re: Joystick connection (C64/Amiga)
« Reply #11 on: June 13, 2011, 10:11:42 AM »
Quote from: Franko;644303
Disconnecting a joystick while the miggie is on is perfectly safe as long as you don't have any of the fire buttons or directional switches pressed on when doing so... :)

That wouldn't do any harm either.  The joystick is either connected or it's not.  In either case, pressing the buttons and moving the joystick won't cause any harm.  The 5V used in the port isn't enough to arc or cause back EMF, so the actual process of disconnection doesn't present any special danger.
 

Offline gertsy

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2006
  • Posts: 2318
  • Country: au
  • Thanked: 1 times
    • Show only replies by gertsy
    • http://www.members.optusnet.com.au/~gbakker64/
Re: Joystick connection (C64/Amiga)
« Reply #12 on: June 13, 2011, 10:25:55 AM »
Quote from: psxphill;644312
the biggest problem is when you touch all the pins with your finger trying to find the socket when plugging the joystick in.


No, unless your finger's wet, or you've had it in your nose or ear. The biggest problem is when you fumble around trying to plug in a metal rimmed plug (like some mouse plugs) and the rim shorts pin 7 to the joystick port skirt.  Apart from that you can plug and unplug a plastic joystick plug while the Amiga is on without any danger to it.
The biggest anoyance is the recessed joystick ports, you cant see them unless you have a go go gadget neck.

BTW. If you had a special joystick made up it could be detected by providing a resistance on pin 5, the lightpen button / X-Pot connection.  But normal digital joysticks; no go on a detection there.
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Joystick connection (C64/Amiga)
« Reply #13 on: June 13, 2011, 11:11:18 AM »
That's right - there are two perils when 'hot' plugging devices:
- shorting powered pins to ground (causing a fuse or track to burn) or an I/O pin that can't cope with it (destroying some active component)
- static electricity: even when not noticable to humans, static buildup (of a non-earthed device or body) of a few hundred to several thousand!(!) volts can instantly destroy electronics

While the Amiga's joystick/mouse ports are explicitly hardened against the latter danger (see manual) there still is some danger, so handle with care!
 

Offline gertsy

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2006
  • Posts: 2318
  • Country: au
  • Thanked: 1 times
    • Show only replies by gertsy
    • http://www.members.optusnet.com.au/~gbakker64/
Re: Joystick connection (C64/Amiga)
« Reply #14 on: June 13, 2011, 12:56:09 PM »
Quote from: Zac67;644693
That's right - there are two perils when 'hot' plugging devices:
- shorting powered pins to ground (causing a fuse or track to burn) or an I/O pin that can't cope with it (destroying some active component)
- static electricity: even when not noticable to humans, static buildup (of a non-earthed device or body) of a few hundred to several thousand!(!) volts can instantly destroy electronics

While the Amiga's joystick/mouse ports are explicitly hardened against the latter danger (see manual) there still is some danger, so handle with care!


This guy goes through PCs like you wouldn't believe.
http://superherouniverse.com/art/showphoto.php/photo/16795/ppuser/890