Jump to content



0

Dectect Press Lightgun Trigger

lightgun

1 reply to this topic

#1 Primordial Ooze OFFLINE  

Primordial Ooze

    Dragonstomper

  • 504 posts
  • Quacker Blaster Lead Programmer
  • Location:United States of America

Posted Wed Oct 19, 2011 6:21 PM

Hi,

I am trying to get the screen to flash when the trigger on the lightgun is pressed. I tried the following:
lda INPT5                           	    ; a 0 in bit D4 means the fire button was pressed

bmi SkipCheckFire                     ; if the fire button wasn't pressed then jump to SkipCheckFire

lda #$01

sta FlashState						    ; set gun barrel anaimation to true

lda WHITE

sta COLUBK							   ; set the background color to white

SkipCheckFire

However it only works when the fire button is pressed on a joystick controller. Does anyone know how to check if the fire trigger was pressed on a lightgun?

Sincerely,

Primordial Ooze

#2 GroovyBee OFFLINE  

GroovyBee

    7800 Developer

  • 5,782 posts
  • Busy bee!
  • Location:North, England

Posted Thu Oct 20, 2011 2:41 AM

Did you look at the link I posted here :-

http://www.atariage....ost__p__2363180




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users