|
Understanding Clickable LAYout elements
03/21/22 02:47 AM
|
|
|
I'm trying to make a clickable layout for the ensoniq SQ1 (esq5505.cpp and esq2by16.lay) using the psr60 as example.
I'm pretty sure i'm missing something but i can't understand what. Whatever i do, my buttons are not working, i'm not even sure they get the "Click" event.
This is part of my current LAYout file (edited 'cause the forum code doesn't allow the XML tags):
Code:
-element ref="button-sml" inputtag="KEY1" inputmask="0x1000" >-bounds x="85" y="40" width="9" height="3" />-/element>-!-- PORT_NAME("ENTER") // 172=ENTER -->
and this is the relevant part of the esq5505.cpp file:
Code:
PORT_START("KEY1") ... PORT_BIT(0x1000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_ENTER) PORT_CHANGED_MEMBER(DEVICE_SELF, esq5505_state, key_stroke, 172) PORT_NAME("ENTER") // 172=ENTER
The keyboard keys are working, but my clickable buttons don't.
What am i doing wrong? What it is that i don't understand?
|
|