<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - How do I specify "hat(0):..." in mapping.xml?]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/15448/"/>
	<updated>2020-12-17T13:50:27Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/15448/how-do-i-specify-hat0-in-mappingxml/</id>
		<entry>
			<title type="html"><![CDATA[Re: How do I specify "hat(0):..." in mapping.xml?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264591/#p264591"/>
			<content type="html"><![CDATA[<p>Yea you defo need a controller with shoulder buttons! Every port it has been for has been at least snes controller spec</p>]]></content>
			<author>
				<name><![CDATA[herr_prof]]></name>
				<uri>https://chipmusic.org/herr_prof</uri>
			</author>
			<updated>2020-12-17T13:50:27Z</updated>
			<id>https://chipmusic.org/forums/post/264591/#p264591</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How do I specify "hat(0):..." in mapping.xml?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264590/#p264590"/>
			<content type="html"><![CDATA[<p>I have found an other USB controller I had somewhere, but it&#039;s nes style, dpad, select, start, A and B, no shoulder. </p><p>I tried to map both shoulder left and right to select, and it works for the page, I can go everywhere except quitting project screen, but I can&#039;t do copy operations like select+b in LSDJ (shoulder L + b in LGPT)</p><p>So it means that only shoulder right works, i can&#039;t mapp select to both shoulder right and left, only the first assignation will work<br />That should be better if select could do the job like on LSDJ. I think maybe it&#039;s that because it was created for consoles which don&#039;t have select at good position, but maybe this can be also changed? Maybe have to compile lgpt for that...</p><p>So I think I will just try with other controllers (have to buy new...) until it works good. One with no joystick but Dpad and shoulders should be a good candidate.</p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2020-12-17T12:37:27Z</updated>
			<id>https://chipmusic.org/forums/post/264590/#p264590</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How do I specify "hat(0):..." in mapping.xml?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/264583/#p264583"/>
			<content type="html"><![CDATA[<p>Hello (after 6 years... but I have exactly the same problem).</p><p>The joystick react but I think my controller is a little ruined and it&#039;s hard to use lgpt with it as cursor goes sometimes to right instead of down etc because you have to be very specific. For the D-pad, that should be better but...<br />I have that :</p><p>LOG: hat(0)::0=8<br />LOG: hat(0)::0=0<br />LOG: hat(0)::0=4<br />LOG: hat(0)::0=0<br />LOG: hat(0)::0=2<br />LOG: hat(0)::0=0<br />LOG: hat(0)::0=1<br />LOG: hat(0)::0=0</p><p>So I tried hat:0:0:1 like egr said in this post but it don&#039;t work for me. There is the &quot;=&quot; which was not on egr&#039;s controller.</p>]]></content>
			<author>
				<name><![CDATA[MazHoot]]></name>
				<uri>https://chipmusic.org/MazHoot</uri>
			</author>
			<updated>2020-12-16T18:23:47Z</updated>
			<id>https://chipmusic.org/forums/post/264583/#p264583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How do I specify "hat(0):..." in mapping.xml?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/219616/#p219616"/>
			<content type="html"><![CDATA[<p>The solution was to use all three digits just like in the log output.&nbsp; Like hat:0:0:0</p><p>Trust the log.&nbsp; It is wise and just.</p><p>(also Marc was kind enough to help me)</p>]]></content>
			<author>
				<name><![CDATA[egr]]></name>
				<uri>https://chipmusic.org/egr</uri>
			</author>
			<updated>2014-10-22T23:59:15Z</updated>
			<id>https://chipmusic.org/forums/post/219616/#p219616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How do I specify "hat(0):..." in mapping.xml?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/219545/#p219545"/>
			<content type="html"><![CDATA[<p>I&#039;m mapping an xbox afterglow gamepad for piggy use.&nbsp; The dpad is unfortunately the &quot;hat&quot; joystick axis.&nbsp; What&#039;s the correct syntax for this in mapping.xml?</p><p>The piggy event dump for the dpad is this:</p><p>[EVENT] hat(0)::0::3<br />[EVENT] hat(0)::0::1<br />[EVENT] hat(0)::0::0<br />[EVENT] hat(0)::0::2</p><p>and what I&#039;ve tried already is this:</p><p>&lt;MAPPINGS&gt;<br />&lt;MAP src=&quot;hat:0:0&quot; dst=&quot;/event/up&quot; /&gt;<br />&lt;MAP src=&quot;hat:0:2&quot; dst=&quot;/event/down&quot; /&gt;<br />&lt;MAP src=&quot;hat:0:3&quot; dst=&quot;/event/left&quot; /&gt;<br />&lt;MAP src=&quot;hat:0:1&quot; dst=&quot;/event/right&quot; /&gt;<br />&lt;MAP src=&quot;but:0:0&quot; dst=&quot;/event/a&quot; /&gt;<br />&lt;MAP src=&quot;but:0:1&quot; dst=&quot;/event/b&quot; /&gt;<br />&lt;MAP src=&quot;but:0:2&quot; dst=&quot;/event/a&quot; /&gt;<br />&lt;MAP src=&quot;but:0:3&quot; dst=&quot;/event/b&quot; /&gt;<br />&lt;MAP src=&quot;but:0:5&quot; dst=&quot;/event/rshoulder&quot; /&gt;<br />&lt;MAP src=&quot;but:0:4&quot; dst=&quot;/event/lshoulder&quot; /&gt;<br />&lt;MAP src=&quot;but:0:7&quot; dst=&quot;/event/start&quot; /&gt;<br />&lt;MAP src=&quot;but:0:6&quot; dst=&quot;/tempo/tap&quot; /&gt;<br />&lt;/MAPPINGS&gt;</p><p>All the buttons work but the dpad does not and in the log the &quot;attached blah blah&quot; isn&#039;t there for the &quot;hat&quot; mappings either.</p>]]></content>
			<author>
				<name><![CDATA[egr]]></name>
				<uri>https://chipmusic.org/egr</uri>
			</author>
			<updated>2014-10-21T23:51:56Z</updated>
			<id>https://chipmusic.org/forums/post/219545/#p219545</id>
		</entry>
</feed>
