electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Instruments and Equipment » OSX as a music workstation
A good programming forum for OSX?
Post new topic   Reply to topic Moderators: elektro80
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Fri Oct 03, 2008 1:29 pm    Post subject: A good programming forum for OSX?
Subject description: or how to to block out mice from the OS
Reply with quote  Mark this post and the followings unread

My specific problem is that I'd like to do a ChucK program that listens to several mice (which is possible, I've tried) and responds to their movements. I'm also thinking about responding to the mouse buttons, but as it works now, clicks will make things happen on the OSX desktop.

ChucK can read each individual mouse input, but the OS has all mice control the single mouse pointer. What I'd like to do is make some application (or find one if it already exists), that makes the OS ignore the input from a selection of mice, while allowing ChucK to read their values.

I haven't seen that many pure programming discussions (or OS tweaking) here, so I'm mainly asking if someone knows a good resource or forum where one can direct these kinds of questions? I checked the link section, and didn't find anything appropriate.

Thanks,

Stefan

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
xjscott



Joined: Apr 25, 2007
Posts: 232
Location: Appalachia

PostPosted: Fri Oct 03, 2008 3:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

You can hide the system cursor with CGDisplayHideCursor(), and show it with CGDisplayShowCursor().

Then, you can use your mouse monitoring code to display your own multiple cursors as you see fit. This is how games that use multiple mice do it.

I don't think you can remove specific individual pointer devices from routing to the system cursor in OS X.

For a board to ask questions at, you want a games programming board since many games do what you want. Also check out the open source ManyMouse library that abstracts some of this.
Back to top
View user's profile Send private message
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Sat Oct 04, 2008 1:37 am    Post subject: Reply with quote  Mark this post and the followings unread

Cool thanks. Very Happy

/Stefan

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Sat Oct 04, 2008 2:00 am    Post subject: Reply with quote  Mark this post and the followings unread

I guess a lot of games get around the system cursor by doing things in full screen mode, which might work in my case as well - though I'm not sure I want to go full screen.

/Stefan

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: elektro80
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Instruments and Equipment » OSX as a music workstation
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use