MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / isdigitalbutton

Function isdigitalbutton

src/inputdevice.cpp:6761–6780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6759}
6760
6761static int isdigitalbutton (int ei)
6762{
6763 if (ei == INPUTEVENT_JOY1_2ND_BUTTON) {
6764 digital_port[0][1] = 1;
6765 return 1;
6766 }
6767 if (ei == INPUTEVENT_JOY1_3RD_BUTTON) {
6768 digital_port[0][0] = 1;
6769 return 1;
6770 }
6771 if (ei == INPUTEVENT_JOY2_2ND_BUTTON) {
6772 digital_port[1][1] = 1;
6773 return 1;
6774 }
6775 if (ei == INPUTEVENT_JOY2_3RD_BUTTON) {
6776 digital_port[1][0] = 1;
6777 return 1;
6778 }
6779 return 0;
6780}
6781
6782static int islightpen (int ei)
6783{

Callers 2

check_enableFunction · 0.85
scaneventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected