The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
Thread Tools Display Modes
Old 08-09-2007, 03:17 PM   #226
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
Awesome, glad its already supported (for the most part.) I dont blame you for trying to make it generic, and comend you on your efforts. I took the easy way out with RRCam

I saw the contexts, but didnt know there were multiple ways to switch em. Please do document this for me =]

also, is it possible to use the device as a mouse without having to hold a button down? i would love to make it its own context, so i could click a button on the spacenav, have it switch to mouse mode, then click it again to have it go back to normal spacenav mode =]
__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Sponsored Links
Old 08-09-2007, 04:08 PM   #227
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Quote: Originally Posted by inh View Post
also, is it possible to use the device as a mouse without having to hold a button down? i would love to make it its own context, so i could click a button on the spacenav, have it switch to mouse mode, then click it again to have it go back to normal spacenav mode =]

The current configuration on an axis to "emulate mouse" doesn't require that you hold down a button. Unless I'm somehow confused, or broke that functionality.

When I'm back at a computer with the SN, I'll try configuring it to operate as a mouse. It should just be a matter of defining a separate context/device context where it is configured to operate as a mouse. :-)

Would probably be best to use some "external" source to switch back and forth, or an unused axis, rather than the button(s).
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 08-09-2007, 04:53 PM   #228
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
I think it said somewhere in the config that you had to hold a button down so that mouse movements didnt get confused as gestures, though its entirely possible i miss-interpreted that.

So far i'm impressed with your work. I've managed to do everything i originally wanted to with it =] As soon as we get the app communicating with other programs worked out completely, i think this will turn in to one very popular program =]
__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Old 08-09-2007, 07:50 PM   #229
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Quote: Originally Posted by inh View Post
I think it said somewhere in the config that you had to hold a button down so that mouse movements didnt get confused as gestures, though its entirely possible i miss-interpreted that.

So far i'm impressed with your work. I've managed to do everything i originally wanted to with it =] As soon as we get the app communicating with other programs worked out completely, i think this will turn in to one very popular program =]

Ahh yes, quite true.. That refers to using the mouse as an input device. If you do, you must hold down a mouse button to perform a gesture.

Kinda whacky, I know, but if you don't define a mouse device context you can make the SN emulate a mouse, without having to press a button.

Sorry for the confusion. :-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 08-09-2007, 11:21 PM   #230
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
Ah ok, that makes sense =] I think im going to add a Mouse context, and use the SN as a mouse sometimes too, just for fun.
__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Sponsored Links
Old 08-10-2007, 07:52 AM   #231
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
Below is (most of) my config file. When the program start up, it acts as a mouse, using the mouse butons like normal.
When you twist it to the right, it changes contexts and goes to the SpaceNavigator
context, which will send commands to RoadRunner for controlling themedia player.
To get back in to mouse mode, you press the left button.

Code:
<deviceContexts> <deviceContext name="SpaceNavigator" device="SpaceNavigator"> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 0 pan left/right --> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 1 pan foreward/back --> <axe threshold="500" type="binary" posAction="RR Play/Pause" negAction=""/> <!-- axe 2 push/pull --> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 3 tilt foreward/back --> <axe threshold="200" type="binary" posAction="RR Prev" negAction="RR Next"/> <!-- axe 4 tilt left/right --> <axe threshold="100" type="exponential" startPulse="1" endPulse="20" posAction="RR Volume Up" negAction="RR Volume Down" /> <!-- axe 5 Twist --> <buttons> <button downAction="Context Down" upAction="" /> <button downAction="RR FullVisu" upAction="" /> </buttons> </deviceContext> <deviceContext name="Mouse" device="SpaceNavigator"> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 0 pan left/right --> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 1 pan foreward/back --> <axe threshold="500" type="binary" posAction="" negAction=""/> <!-- axe 2 push/pull --> <axe simulateMouseMove="y" threshold="50" divisor="30" /> <axe simulateMouseMove="x" threshold="50" divisor="30" /> <axe threshold="200" type="binary" posAction="Context Up" negAction=""/> <!-- axe 5 twist --> <buttons> <button simulateMouseButton="left" /> <button simulateMouseButton="right" /> </buttons> </deviceContext> </deviceContexts> <contexts> <context name="Default" deviceContext="Mouse" /> <context name="SpaceNavigator" deviceContext="SpaceNavigator" /> <context name="Mouse" deviceContext="Mouse" /> </contexts> <actions> <sendWindowMessage name="Context Up" type="CopyData" window="SpaceNavigatorDriver" message="CONTEXT;Up"/> <sendWindowMessage name="Context Down" type="CopyData" window="SpaceNavigatorDriver" message="CONTEXT;Down"/> <sendWindowMessage name="RR Volume Up" type="CopyData" window="RoadRunner" message="VOL+"/> <sendWindowMessage name="RR Volume Down" type="CopyData" window="RoadRunner" message="VOL-"/> <sendWindowMessage name="RR Mute" type="CopyData" window="RoadRunner" message="MUTE"/> <sendWindowMessage name="RR Play/Pause" type="CopyData" window="RoadRunner" message="PLAY"/> <sendWindowMessage name="RR Next" type="CopyData" window="RoadRunner" message="NEXT"/> <sendWindowMessage name="RR Prev" type="CopyData" window="RoadRunner" message="PREV"/> <sendWindowMessage name="RR FullVisu" type="CopyData" window="RoadRunner" message="Full_Visu"/> <keyPress name="Copy"> <key>17</key> <key>67</key> </keyPress> <keyPress name="Paste"> <key>17</key> <key>86</key> </keyPress> </actions>

__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Old 08-10-2007, 11:04 AM   #232
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Quote: Originally Posted by inh View Post
Below is (most of) my config file. When the program start up, it acts as a mouse, using the mouse butons like normal.
When you twist it to the right, it changes contexts and goes to the SpaceNavigator
context, which will send commands to RoadRunner for controlling themedia player.
To get back in to mouse mode, you press the left button.

Excellent!

Glad you're getting a handle on how to use the config file. By the time I get a config app finished, you won't need it.

P.S. You can switch to a context by name instead of incrementally. So you could use "CONTEXT;Mouse" to switch to the mouse context, or "CONTEXT;SpaceNavigator" to switch to the SN context.

HINT: This is how you can have RR change the context, by sending the SN app a window message with the context you wish to switch to. Something like maybe "CONTEXT;RRAudio" for the audio skin. The command can be embedded in the skin, so that any time it's activated it sends the window message. ;-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.

Last edited by cherrybomb : 08-10-2007 at 11:11 AM. Reason: Added details about context switching
cherrybomb is offline   Reply With Quote
Old 08-10-2007, 01:07 PM   #233
Constant Bitrate
 
Join Date: Mar 2007
Posts: 197
My Photos: (0)
awesome guys!
ironfinger is offline   Reply With Quote
Old 08-10-2007, 01:11 PM   #234
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
Hah sweeet! Gonna try that tomorrow =D I suspected there was a way to change context exactly like that, i just never got around to trying it. Something about how it was context;down instead ofo just context down, ya know? Ah well, glad its there! =]

Im definatly going to add this in.. I gotta check in RR, but i hope theres a way to send the message when the skin page loads, not just when a button is clicked to load it and then send the message.. There are sooo many ways a skin can be loaded, ya know? Ah well, i'll look in to it and report back =] I'm having fun working with my fusion brain too, so between the two projects, im making loads of progress and having a blast!

Is there any other tricks i should know about? Is there a button command that will activate when both buttons are pressed down? And i just have this nagging feeling i recognize you (or your truck) from explorer forum..
__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Old 08-10-2007, 01:58 PM   #235
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Quote: Originally Posted by inh View Post
Hah sweeet! Gonna try that tomorrow =D I suspected there was a way to change context exactly like that, i just never got around to trying it. Something about how it was context;down instead ofo just context down, ya know? Ah well, glad its there! =]

Im definatly going to add this in.. I gotta check in RR, but i hope theres a way to send the message when the skin page loads, not just when a button is clicked to load it and then send the message.. There are sooo many ways a skin can be loaded, ya know? Ah well, i'll look in to it and report back =] I'm having fun working with my fusion brain too, so between the two projects, im making loads of progress and having a blast!

Is there any other tricks i should know about? Is there a button command that will activate when both buttons are pressed down? And i just have this nagging feeling i recognize you (or your truck) from explorer forum..

No other special tricks that I can think of off the top of my head. I still have to document a lot of this stuff!

And yes, I'm also on explorer forum as "cherrybomb". I've been a lot more active here since this is my current project, but I intend to post over there when I "finish" this project. :-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Old 08-10-2007, 08:25 PM   #236
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
Finish, hah! I havent been on EF in forever.. but when i get back to the states and it's time to replace my motor in mine, im sure i'll be back. Hell maybe i'll finish the motor build i had all planned out... woot for off-topicness!
__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Old 08-12-2007, 07:47 AM   #237
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
There is one thing that I'd like you to add, and then i think this app would be complete.

LED Control.. I think the best way to do it is to add it as an option for each context, as well as being able to send window messages to the app to turn it on or off (for integration with front ends)
__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Old 08-15-2007, 12:18 PM   #238
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
OK, i'm back at it again. I have context switching from roadrunner working almost perfectly. Im having two issues right now, and i think only one is related to the program, the other might just be some wierd quirk of my system.

The big issue is that when i send the app "CONEXT;Mouse" It will start treating the axe's as the mouse, as per the mouse context, but the buttons still act like they do under my SpaceNavigator context.

The other issue is that no matter what, it wants to start up and default to the SpaceNavigator context, no matter what i set the Default setting to. This just popped up recently as i started playing with context switching, so it might be the program, but it might be my computer as well..
__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Old 08-15-2007, 01:18 PM   #239
inh
Maximum Bitrate
 
Join Date: Jan 2007
Location: Fort Riley KS
Vehicle: 91 CRX Si
Posts: 514
My Photos: (0)
Ok, heres the problem, or at least, where the problem is located.

If I have this for contexts:

Code:
<contexts> <context name="Default" deviceContext="Mouse" /> <context name="Mouse" deviceContext="Mouse" /> <context name="****" deviceContext="SpaceNavigator" /> </contexts>

**** is the variable im talking about below. If i set **** to "Audio" It defaults to loading the SPaceNavigator context.
In fact, any value from A to D does it. But only uppercase. And if i try something like "Dill" it wont cause the error.
If i set it to anything else, Like E, no problems..So it seems the issue is only with uppercase letters, and only those few.

So for now, I set the Context name to Media, for the play/pause commands and the like. So far so good,at least it's switching the contexts now.

Last issue I've found is that when it recieves the command to switch contexts, it does, but the mouse buttons dont get redefined and set to the
new context.
__________________
Space Navigator - 6 Axis input device: Take it apart - Driver App
RRCam - Video/webcam capture, text overlay, and recording: 2.0 Stable
inh is offline   Reply With Quote
Old 08-20-2007, 01:14 PM   #240
Variable Bitrate
cherrybomb's CarPC Specs
 
cherrybomb's Avatar
 
Join Date: Apr 2005
Location: Southern Califorina
Vehicle: 1999 Ford Explorer
Posts: 227
My Photos: (0)
Hey man,

Haven't been ignoring you, I swear! Work has been hectic, and I've been trying to get my CarPC project off the ground.

The good news is, everything is "installed" and my CarPC is operational! WOO! Now to tweak (I'm not even using the SN yet ).

At any rate to address your comments/questions

Quote: Originally Posted by inh View Post
There is one thing that I'd like you to add, and then i think this app would be complete.

LED Control.. I think the best way to do it is to add it as an option for each context, as well as being able to send window messages to the app to turn it on or off (for integration with front ends)

I'll look into adding this, it should be trivial, but I have to figure out how to make it somewhat "generic" for other devices.

Don't worry, it's on the list. :-)

On the last two issues, it's going to be most productive for me to have a copy of your ENTIRE config file. You can just PM it to me.

That way I can run it exactly as you are, and watch it with the debugger.

No promises on how quickly I can fix/change any of this, but I'll take a look at it ASAP. :-)
__________________
'99 Ford Explorer Eddie Bauer
CarPC Progress ~= 97%. Everything is installed, and operational. Still need to tweak and tune, and do some "finish" fabrication.
CarPC Project Web Site

SpaceNavigatorDriver SourceForge Project

Check out my blog.
cherrybomb is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find a List of Available Skins Here! ThunderStick RR Skins 0 10-17-2007 06:28 PM
Questions! Yellow-Snow Mobile Impact 4 06-10-2006 05:18 PM
iGuidance Font Size Fix summary thread Viscouse GPS 29 03-28-2006 06:21 PM
Hot Chicks Thread - NOT WORK SAFE ODYSSEY Off Topic 1 05-17-2005 09:38 PM
Request regarding the Offical Skin Presentation thread Confused MediaCar 3 01-07-2004 11:52 AM


All times are GMT -5. The time now is 05:09 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics