Re: Knowing whether a tablet is connected and switching modes
Re: Knowing whether a tablet is connected and switching modes
- Subject: Re: Knowing whether a tablet is connected and switching modes
- From: Ricky Sharp <email@hidden>
- Date: Wed, 25 Jan 2006 22:06:04 -0600
On Jan 25, 2006, at 8:22 PM, Ricky Sharp wrote:
On Jan 25, 2006, at 6:51 PM, Gideon King wrote:
I have an application that I have been testing with Ink, and it
works fine, except that you need to switch between the "Write
Anywhere" mode and the cursor mode quite often, so when the user
has a tablet connected, I want to show them an extra item
(probably on the context menu) to change modes.
In the documentation I see lots of stuff about responding to
events etc, but I can't see the things I am looking for:
1. How do I know that they have a tablet connected?
2. How do I tell Ink to switch from Write Anywhere on to off and
back again?
I am targeting 10.3.9+
Your best shot at this would be to look at the Carbon APIs. I know
there are APIs to at least set the Ink modes as I use these in my app:
InkSetApplicationRecognitionMode
InkSetApplicationWritingMode
For the handling of Ink events, I also use Carbon (Carbon Event
APIs). There may be some event you can handle that would occur
when tablets are connected/disconnected.
I didn't see any Carbon events (CarbonEvents.h) to handle tablet
connection/disconnection. Perhaps you could use IOKit for this?
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden