New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Generating Keyboard Events


Post Reply New Thread Subscribe

 
Thread Tools
narikivar

 
Member Since: May 05, 2010
Posts: 1
narikivar is on a distinguished road

narikivar is offline
Hi all,
I recently started my development in MAC OS. My aim is to generate keyboard events programatically, and I came across this method CGEventCreateKeyboardEvent and CGPostToPSN.....My doubt here is there is flag in CGEventCreateKeyboardEvent method, which indicates key down or key up...........In our keyboards if I press and hold down a key, it keeps on producing the event.. I thought even this API does the samething on setting the flag TRUE..but it isn't the case...Any pointers on this!!!!
QUOTE Thanks
chscag

 
chscag's Avatar
 
Member Since: Jan 23, 2008
Location: Fort Worth, Texas
Posts: 39,003
chscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond repute
Mac Specs: 27" iMac i5, 3.2 GHz, iPad 3, iPhone 5c, 3 iPods, OS X Mavericks

chscag is offline
Note: Moved to appropriate forum.
QUOTE Thanks

Post Reply New Thread Subscribe


« Pointers in Objective-C | WebView in NSWindow and keyboard events »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Latin American keyboard lwmann Switcher Hangout 1 07-25-2012 09:01 PM
External keyboard works on 10.5.4 not on 10.5.6/10.5.8 kamilski81 Other Hardware and Peripherals 1 09-21-2009 02:10 PM
Mapping a custom keyboard layout to a wireless keyboard Cakebread Other Hardware and Peripherals 0 09-20-2009 08:57 PM
Really annoying keyboard Emuleem22 Switcher Hangout 7 09-25-2006 09:34 PM
Can't lift keyboard back out. gliss Apple Notebooks 6 02-09-2005 03:12 PM

All times are GMT -4. The time now is 07:43 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?