home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.apple2      Discussion about Apple II micros      56,720 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 55,605 of 56,720   
   Anthony Ortiz to Michael J. Mahon   
   Re: Detect key at startup   
   14 Jul 22 18:13:12   
   
   From: anthonypaulo@gmail.com   
      
   On Thursday, July 14, 2022 at 7:17:18 PM UTC-4, Michael J. Mahon wrote:   
   > > Question for you guys... I made my own peripheral card a while back and I    
   > > want to enable it only if you hold down the SHIFT key during    
   > > ctrl-openapple-reset. What would you say is the best way to achieve this?    
   > >   
   > There are only two ways to detect that the shift key is depressed: 1)    
   > testing the pushbutton input for the “shift key mod” (if it’s   
   installed,    
   > and if its corresponding pushbutton is *not* pressed), or 2) finding the    
   > keyboard port with an ASCII code which is a “shifted” character.    
   >    
   > Since Ctl-Open Apple-Reset does not generate any keycode at the keyboard    
   > port, 2) is not useful. So any detection of shift key depression can only    
   > be detected if the shift key mod is present and the corresponding    
   > pushbutton does not interfere.    
   >    
   > You may want to consider using a keycode-generating key, as ProDOS does.    
   >    
   > --    
   > -michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com   
      
   Hello Michael!   
      
   Okay I get it... so If I were to have my peripheral card listen to the RESET   
   line and immediately check $C000 for the keycode-generating key of choice,   
   then this would cover my scenario of detecting a keypress during startup   
   right? Or is the RESET line    
   by itself not enough to determine ctrl-apple-reset occurred?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca