mirror of
https://github.com/libretro/Mu.git
synced 2026-09-23 15:15:43 +00:00
Touchscreen now triggers, still doesnt work properly
This commit is contained in:
@@ -47,13 +47,14 @@ bool sed1376ClockConnected(){
|
||||
}
|
||||
|
||||
void refreshInputState(){
|
||||
checkPortDInterrupts();
|
||||
uint16_t icr = registerArrayRead16(ICR);
|
||||
bool penIrqPin = !(ads7846PenIrqEnabled && palmInput.touchscreenTouched);//penIrqPin pulled low on touch
|
||||
|
||||
/*
|
||||
if(ads7846PenIrqEnabled){
|
||||
edgeTriggeredInterruptLastValue;
|
||||
}
|
||||
*/
|
||||
//IRQ set as pin function and triggered
|
||||
if(!(registerArrayRead8(PFSEL) & 0x02) && penIrqPin == (bool)(icr & 0x0080))
|
||||
setIprIsrBit(INT_IRQ5);
|
||||
|
||||
checkPortDInterrupts();//this calls checkInterrupts() so it doesnt need to be called above
|
||||
}
|
||||
|
||||
int interruptAcknowledge(int intLevel){
|
||||
|
||||
Reference in New Issue
Block a user