mirror of
https://github.com/lindbergh-loader/lindbergh-loader.git
synced 2026-10-12 09:08:15 +03:00
Fix JVS analogue emulator issue
This commit is contained in:
@@ -200,8 +200,8 @@ int XNextEvent(Display *display, XEvent *event_return)
|
||||
|
||||
case MotionNotify:
|
||||
{
|
||||
setAnalogue(ANALOGUE_1, ((double)event_return->xmotion.x / (double)getConfig()->width) * 1024.0);
|
||||
setAnalogue(ANALOGUE_2, ((double)event_return->xmotion.y / (double)getConfig()->height) * 1024.0);
|
||||
setAnalogue(ANALOGUE_1, ((double)event_return->xmotion.x / (double)getConfig()->width) * 255);
|
||||
setAnalogue(ANALOGUE_2, ((double)event_return->xmotion.y / (double)getConfig()->height) * 255);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ int initJVS()
|
||||
io.capabilities.switches = 14;
|
||||
io.capabilities.coins = 2;
|
||||
io.capabilities.players = 2;
|
||||
io.capabilities.analogueInBits = 10;
|
||||
io.capabilities.analogueInBits = 8;
|
||||
io.capabilities.rightAlignBits = 0;
|
||||
io.capabilities.analogueInChannels = 20;
|
||||
io.capabilities.generalPurposeOutputs = 20;
|
||||
|
||||
Reference in New Issue
Block a user