I have it actualy working my goal is to not clutter up my main and to move out as much as possible. I tried the suggestion but I get a segfault the wiimote connects then segfault. Again all works well in main not so well in an external functionm If I didn't mention prior I am using cwiid library Thanks On 6/19/09, Carlos Macedo Gomes wrote: > There may be some guides and/or OSS to Wii remote interfaces here: > http://johnnylee.net/projects/wii/ > > When I hear folks talking about this > kinda stuff, makes me think that Phoenix needs a MakerFaire to show off all > our DYI stuff :-). > http://www.makerfaire.com/ > http://makezine.com/about/ > > ymmv, > C.G. > > On Fri, Jun 19, 2009 at 9:26 AM, James Finstrom < > jfinstrom@rhinoequipment.com> wrote: > >> Greetings all, >> >> I am writing app that allows me to control my canon SLR with my wiimote. I >> am trying to figure out how to call a function in main that generats a >> handle then returns the handle to main >> >> >> Concept: >> >> connect(){ connect to wiimote and return handle foo} >> >> main(){ call connect(), get handle, perform actions on that handle} >> >> >> James Finstrom >> >> --------------------------------------------------- >> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us >> To subscribe, unsubscribe, or to change your mail settings: >> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss >> > > > > -- > powerofprimes@gmail.com > Carlos Macedo Gomes > _sic itur ad astra_ > http://claimid.com/cmgomes > -- James Finstrom Rhino Equipment Corp. http://rhinoequipment.com ~ http://postug.com Phone: 1-877-RHINO-T1 ~ FAX: +1 (480) 961-1826 Twitter: http://twitter.com/rhinoequipment IP: guest@asterisk.rhinoequipment.com --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss