<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Joystick support for Linux]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=629&amp;type=atom"/>
	<updated>2013-08-08T11:58:06Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=629</id>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4532#p4532"/>
			<content type="html"><![CDATA[<p>Again, I fixed a bug about two axes being interchanged.<br />Additionally I cleaned up the code.</p><p>Patch: <a href="http://pastebin.com/i0p6dTAy">http://pastebin.com/i0p6dTAy</a></p><p>Sponk</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2013-08-08T11:58:06Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4532#p4532</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4124#p4124"/>
			<content type="html"><![CDATA[<p>I fixed a bug affecting people using two joysticks at the same time.</p><p>Patch: <a href="http://pastebin.com/XCpGUDWB">http://pastebin.com/XCpGUDWB</a></p><p>Sponk</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2013-05-07T08:15:38Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4124#p4124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4123#p4123"/>
			<content type="html"><![CDATA[<p>usmangani289: Thanks for your feedback!</p><p>About the reconnect: It does not work because the joystick gets initialized once the game starts. Reconnecting could lead to undefined behaviour. I will see whether I can make some PnP detection to detect reconnected and newly connected devices.</p><p>About the &#039;precision mode&#039;: I don&#039;t think I could do something about it. I get data from the driver as it comes. I don&#039;t change anything about the values. If the button was common for all joysticks I could try to emulate the wanted behaviour but I think it&#039;s not that common for a joystick to even have this button.</p><p>I read about the vibration feature but I don&#039;t know how to expose it to the Maratis SDK since there is no engine support for that yet (As far as I know).</p><p>Thanks for you feedback <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /><br />I will see what I can do about your &#039;problems&#039; <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Sponk</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2013-05-07T08:03:02Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4123#p4123</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4027#p4027"/>
			<content type="html"><![CDATA[<p>Will test on my Fedora 17 box as soon as i get hold of a another joystick <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" />. Thanks for your efforts Sponk!</p>]]></content>
			<author>
				<name><![CDATA[Alf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1199</uri>
			</author>
			<updated>2013-04-19T08:16:37Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4027#p4027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4017#p4017"/>
			<content type="html"><![CDATA[<p>Lamberto: So it now works as expected? Could you please describe exactly your steps to make it work?</p><p>I still don&#039;t know what exactly caused the failure. Maybe I will find it later <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>TaeZ: You could possibly fix it the same way as Lamberto</p><p>Nice to hear that it is not solely my fault <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Sponk</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2013-04-17T17:19:09Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4017#p4017</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4010#p4010"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Sponk wrote:</cite><blockquote><p>Are you sure you used the version from SVN while testing?</p></blockquote></div><p>sure but ... wait.<br />I was adding some printf in your code to figure out where the problem was, and... now it works! mumble mumble...&nbsp; it may be due from some package installed by jstest-gtk. I must try Maratis svn version on freshly installed Ubuntu machine.</p><p>Lamberto</p>]]></content>
			<author>
				<name><![CDATA[Lamberto]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1345</uri>
			</author>
			<updated>2013-04-17T09:12:26Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4010#p4010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4005#p4005"/>
			<content type="html"><![CDATA[<p>Hi,</p><p>I&#039;ve tested cheap ACME gamepad on Ubuntu 12.04 (Maratis r200), but it doesn&#039;t work me either. Gamepad is functioning fine. Can I give you any more info to make it easier to debug?</p>]]></content>
			<author>
				<name><![CDATA[TaeZ]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1396</uri>
			</author>
			<updated>2013-04-16T20:30:46Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4005#p4005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4004#p4004"/>
			<content type="html"><![CDATA[<p>I don&#039;t really know why it does not work for you.<br />The driver seems to be loaded and function properly.</p><p>Are you sure you used the version from SVN while testing?<br />You can find it in </p><div class="codebox"><pre><code>trunk/dev/prod/linux2/release/Maratis/Bin</code></pre></div><p>in your Maratis source directory.</p><p>Sponk</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2013-04-16T19:45:09Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4004#p4004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4003#p4003"/>
			<content type="html"><![CDATA[<p>lsusb returns<br /></p><div class="codebox"><pre><code>Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 056a:0010 Wacom Co., Ltd Graphire
Bus 001 Device 006: ID 12bd:d012  
Bus 001 Device 005: ID 058f:6364 Alcor Micro Corp. AU6477 Card Reader Controller
Bus 002 Device 003: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 002 Device 004: ID 046d:09a5 Logitech, Inc. Quickcam 3000 For Business
Bus 002 Device 005: ID 1a1d:8301 Veho 
Bus 002 Device 008: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
Bus 002 Device 007: ID 0409:02b9 NEC Corp. </code></pre></div><p>joypad is Bus 001 Device 006: ID 12bd:d012</p><p>I tried &quot;cat /dev/input/js0&quot; that returns weird characters while pressing joypad buttons (meaning it works)</p><p>as final test used jstest-gtk and output is fine</p><p>any guess?<br />Lamberto</p>]]></content>
			<author>
				<name><![CDATA[Lamberto]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1345</uri>
			</author>
			<updated>2013-04-16T08:53:07Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4003#p4003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4002#p4002"/>
			<content type="html"><![CDATA[<p>I can&#039;t reproduce it.<br />I get correct output.</p><p>Could you give me the output of</p><div class="codebox"><pre><code>lsusb</code></pre></div><p>and</p><div class="codebox"><pre><code>/dev/input/js0</code></pre></div><p>using the terminal?</p><p>Sponk</p><p>EDIT: I used the code stated earlier</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2013-04-15T19:23:13Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4002#p4002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3999#p3999"/>
			<content type="html"><![CDATA[<p>Hi Sponk<br />this is the code I used for testing<br /></p><div class="codebox"><pre><code>function onSceneUpdate()
    print(getAxis(&quot;JOY1_Y&quot;))
    print(isKeyPressed(&quot;JOY1_BUTTON1&quot;))
end</code></pre></div><p>just tried on different machine (same OS) with different joypad and I got same result:<br /></p><div class="codebox"><pre><code>0
false</code></pre></div><p>Lamberto</p>]]></content>
			<author>
				<name><![CDATA[Lamberto]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1345</uri>
			</author>
			<updated>2013-04-15T09:59:53Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3999#p3999</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3994#p3994"/>
			<content type="html"><![CDATA[<p>Lamberto: What code did you use to test the functionality? (I mean the lua code)</p><p>I tested it with three different joysticks on Ubuntu 12.10, Ubuntu 13.04 and openSUSE 12.3.<br />All three worked without any problems.</p><p>Does your joystick work with other programs/games?</p><p>Do you use multiple joysticks? I found a bug when using two controllers at the same time (I will fix it later today).</p><p>Sponk</p><p>PS: Thanks for your feedback <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>EDIT: Fixed typo</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2013-04-14T09:27:52Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3994#p3994</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3993#p3993"/>
			<content type="html"><![CDATA[<p>Ubuntu linux 12.10<br />current svn compiles without errors<br />can&#039;t get joystick input</p>]]></content>
			<author>
				<name><![CDATA[Lamberto]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1345</uri>
			</author>
			<updated>2013-04-14T07:18:12Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3993#p3993</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3954#p3954"/>
			<content type="html"><![CDATA[<p>The patch is in the trunk, thank you Sponk !</p><p>I don&#039;t have access to linux to test it, is there a linux user that can help with this ?<br />&gt; first by testing that the compilation is going without errors<br />&gt; then by testing a controller</p><p>Thanks for the help.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-04-10T05:21:37Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3954#p3954</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Joystick support for Linux]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3908#p3908"/>
			<content type="html"><![CDATA[<p>Hi, thanks !<br />I will merge your patch to the trunk when I find some time,<br />nice work !</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-04-03T15:13:21Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3908#p3908</id>
		</entry>
</feed>
