• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Keyboard State
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keyboard State


  • Subject: Keyboard State
  • From: Richard Dodd <email@hidden>
  • Date: Wed, 25 Sep 2002 15:45:06 -0500

As a means to teach myself Cocoa programming, I am writing a simple game. So
far everything as gone together better than I could have hoped. At the
moment, he only thing that could be better is using the keyboard to control
the game action. I am currently having one of my custom views receive
keyDown events. This works fine as long as the player only needs to use one
key at time. If the player tries to move and fire at the same time, the
second key press stops the first until it is released and pressed again.

Is there a way, in Cocoa to test the state of the keyboard or for the
program to 'see' more than one key press at a time?
--
Richard Dodd
Technical Support
Database Systems
Springfield, Mo
Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Keyboard State
      • From: Matthew Formica <email@hidden>
  • Prev by Date: Re: Hotkeys question
  • Next by Date: Re: Force Finder to redisplay changed custom icon
  • Previous by thread: Re: Switcher ( was Re: Book-OT )
  • Next by thread: Re: Keyboard State
  • Index(es):
    • Date
    • Thread