Most basics OpenGL sample codes on ADC handle keyboard events.

For instance, first Google result for "Cocoa OpenGL"

http://developer.apple.com/mac/library/samplecode/CocoaGL/Introduction/Intro.html


Le 7 avr. 2010 à 09:34, Pascal Harris a écrit :

> I've never programmed games before, although I've got a fair bit of useful OS 
> X utility software under my belt.  I've now had a few ideas that I'd like to 
> implement - and I'm stuck at almost the first hurdle.  I've managed to create 
> an OpenGL view (by way of experimentation) and chuck a few graphics into it 
> (triangles, circles (well, the closest OpenGL can get to a circle anyway!) 
> and so forth).  But I can't work out how to get that OpenGL view to accept 
> keystrokes from my event loop.  When it comes to tile based games I'm at a 
> complete loss.
> 
> Obviously, there are various resources out there (SDL, Blitz etc), but I'd 
> rather not use those because I want to understand the ins and outs of my 
> engine.  I've googled and come up with plenty of resources for Windows game 
> programming - but not so many for the Mac.  In fact, the only book that 
> approaches what I'm after (with friendly examples) is "Pangea Software’s 
> Ultimate Game Programming Guide for Mac OS X" - but that's rather out of date.
> 
> What I really want is something like the excellent guides written by 
> luminaries like Kochan or  Hillegass, but focussed on game programming for OS 
> X.  Does anyone know if such a guide exists?  Failing that, is anyone able to 
> suggest a noddy guide to programming games that I might be able to find on 
> the 'net (because so far my efforts have been rather below par).
> 
> Sorry to post such a non-technical question - I didn't know who else to 
> ask._______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org
> 
> This email sent to [email protected]

-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to