NSView subclass input question
NSView subclass input question
- Subject: NSView subclass input question
- From: "Joshua D. Orr" <email@hidden>
- Date: Fri, 22 Feb 2002 17:22:12 -0700
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.