• 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
Re: NSView subclass input question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView subclass input question


  • Subject: Re: NSView subclass input question
  • From: "Erik M. Buck" <email@hidden>
  • Date: Fri, 22 Feb 2002 19:20:11 -0600

See Omni's sample code for games including game style input:
www.omnigroup.com

----- Original Message -----
From: "Joshua D. Orr" <email@hidden>
To: <email@hidden>
Sent: Friday, February 22, 2002 6:22 PM
Subject: NSView subclass input question


> I have an OpenGL view that looks like it is as subclass of NSView. I
> know how to get basic input using NSView methods, but is there a better
> way?
>
> For example, when you press a button on the keyboard, there is a slight
> delay before it begins repeating and even then there are very small
> delays between each repeat so when I use that for the OpenGL view it
> looks a little jerky...
>
> And the only way I get amy mouse events in the view is if you click and
> hold down the mouse button in the view... Not a very good way of doing
> it.
>
> So is there any direct way to get events from the keyboard and mouse a
> little more directly, maybe a way of querying them to see if a key is
> down, etc.
>
> The way I really want it is this:
>
> Don't waste CPU cycles to constantly query the keyboard/mouse but to get
> evens from them. So it won't do anything unless there is mouse movement
> or keyboard input.
>
>
> Thanks for any help in this matter... I have looked though the
> documentation for NSView and have not found the answer yet... The answer
> may be somewhere else, but I am nto really sure where to look. Maby the
> HID? Any information will be helpful!
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >NSView subclass input question (From: "Joshua D. Orr" <email@hidden>)

  • Prev by Date: Re: number formatting
  • Next by Date: applicationShouldTerminate oddity
  • Previous by thread: NSView subclass input question
  • Next by thread: Apple help and CFBundleIdentifier
  • Index(es):
    • Date
    • Thread