Accesso rapido:  

Forum: General Discussion

Topic: having a issue with hid trace

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

i am trying to get 4 buttons on a video game control to work .. example: 5 the row down of the hid trace and 4 row over.. i think its because of the comma



<page type="in">
<button name="BUTTON 1" bit="0x5,4" deck="1" />
<button name="BUTTON 2" bit="0x5,5" deck="1" />
<button name="BUTTON 3" bit="0x5,6" deck="1" />
<button name="BUTTON 4" bit="0x5,7" deck="1" />
sorry to all who have learned this in grade three .

I need to have each button override the others
<?xml version="1.0" encoding="UTF-8"?>
<mapper device="gameshow" version="802" date="2017-12-11">
<map value="BUTTON 1" action="sampler_bank &quot;buzzer&quot; &amp; sampler_pad 2 ? nothing :sampler_bank &quot;buzzer&quot; &amp; sampler_pad 1" />
<map value="BUTTON 2" action="sampler_bank &quot;buzzer&quot; &amp; sampler_pad 1 ? nothing :sampler_bank &quot;buzzer&quot; &amp; sampler_pad 2" />
<map value="BUTTON 3" action="sampler_bank &quot;buzzer&quot; &amp; sampler_pad 3 ? nothing :sampler_bank &quot;buzzer&quot; &amp; sampler_pad 3" />
<map value="BUTTON 4" action="sampler_bank &quot;buzzer&quot; &amp; sampler_pad 3 ? nothing :sampler_bank &quot;buzzer&quot; &amp; sampler_pad 4" />

</mapper>


does this make sense


 

Inviato Sat 24 Nov 18 @ 4:25 am
djdadPRO InfinityDevelopment ManagerMember since 2005
Yes, the bit values are incorrect.

See below example. The bit (value 1) inside the red box, comes from row 5 / column 9. You just combine those 2 value.. so it's...bit="0x59"

 

Inviato Sat 24 Nov 18 @ 7:43 am
thanks , i got it to work. had to reload .. also thanks for being on line its late and i cant sleep to much going on ..
 

Inviato Sat 24 Nov 18 @ 8:13 am
thanks djdad.. i got it all working now ... now to build the next 3 with led lighting inside
 

Inviato Sat 24 Nov 18 @ 8:37 am


(Vecchi argomenti e forum sono automaticamente chiusi)