Skip to content

Commit

Permalink
Fujitsu Air Warrior V2.1 L10 improved Joystick Integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainys committed Feb 3, 2021
1 parent d4a7905 commit 2cb7f6d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/externals/connect_fssimplewindow/fssimplewindow_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,24 @@ FsSimpleWindowConnection::~FsSimpleWindowConnection()
diffY=80;
}

const int minimum_threshold=16;
if(-minimum_threshold<diffX && diffX<0)
{
diffX=-minimum_threshold;
}
if(0<diffX && diffX<minimum_threshold)
{
diffX=minimum_threshold;
}
if(-minimum_threshold<diffY && diffY<0)
{
diffY=-minimum_threshold;
}
if(0<diffY && diffY<minimum_threshold)
{
diffY=minimum_threshold;
}

towns.SetMouseButtonState((0!=lb),(0!=rb));
for(auto &p : towns.gameport.state.ports)
{
Expand Down

0 comments on commit 2cb7f6d

Please sign in to comment.