polling for bluetooth events
polling for bluetooth events
- Subject: polling for bluetooth events
- From: Hans-Christoph Steiner <email@hidden>
- Date: Fri, 7 Mar 2008 15:55:44 -0500
I am currently in the process of adding bluetooth HID support to Pure
Data, a realtime, visual programming language for sound, video, etc.
The GUI is all written in Tcl/Tk, so we are not handling a CFRunLoop
at all.
I have gotten device searching and connection working by using
CFRunLoopRun() then sticking CFRunLoopStop(CFRunLoopGetCurrent()) the
end of the of the inquiry completion callback. I am trying to get
the same thing working for getting events, but I haven't been able to.
Ideally, I would be able to poll for bluetooth events, is there a way
to do that, outside of creating a separate thread to handle the event
callbacks? Maybe something with CFRunLoopRunInMode()?
Here's the code in question:
http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/
io/wiiremote/
.hc
------------------------------------------------------------------------
----
http://at.or.at/hans/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden