Adds option for an Axis Fix for some (PS2) adapters which map the D-Pad to Axis
This commit is contained in:
@@ -327,6 +327,7 @@ AutoMapOnJoyChange=Als deze optie op &oq;Aan&cq; staat, zal het spel joysticks o
|
|||||||
AutoPlay=Deze optie is handig voor mensen die zonder mat willen spelen. Maar je kan geen nummers verdienen of scores vestigen als dit aan staat.
|
AutoPlay=Deze optie is handig voor mensen die zonder mat willen spelen. Maar je kan geen nummers verdienen of scores vestigen als dit aan staat.
|
||||||
AutogenGroupCourses=Laat de groep Zonder Stoppen en Eindeloos parkoers zien die door de Autogen gemaakt zijn.
|
AutogenGroupCourses=Laat de groep Zonder Stoppen en Eindeloos parkoers zien die door de Autogen gemaakt zijn.
|
||||||
AutogenSteps=Genereer automatisch de stappen voor andere spel typen.
|
AutogenSteps=Genereer automatisch de stappen voor andere spel typen.
|
||||||
|
AxisFix=Workaround für einige Adapter, die das D-Pad auf Achsen mappen. Funktioniert noch nicht unter Mac OSX oder Linux JS Treiber.
|
||||||
BGBrightness=Beheerst hoe fel de achtergrond er uit ziet. Zet dit lager als je de noten niet goed kan zien.
|
BGBrightness=Beheerst hoe fel de achtergrond er uit ziet. Zet dit lager als je de noten niet goed kan zien.
|
||||||
Background=Verander de opties voor welke achtergrond tijdens het spelen zichtbaar is.
|
Background=Verander de opties voor welke achtergrond tijdens het spelen zichtbaar is.
|
||||||
BarDrain=BalkDrain
|
BarDrain=BalkDrain
|
||||||
@@ -814,6 +815,7 @@ AutoMapOnJoyChange=Automap Joysticks
|
|||||||
AutoPlay=AutoSpeel
|
AutoPlay=AutoSpeel
|
||||||
AutogenGroupCourses=Autogen Groep Parkoers
|
AutogenGroupCourses=Autogen Groep Parkoers
|
||||||
AutogenSteps=Autogen Stappen
|
AutogenSteps=Autogen Stappen
|
||||||
|
AxisFix=Achsen Fix
|
||||||
BGBrightness=Helderheid
|
BGBrightness=Helderheid
|
||||||
Background=Achtergrond
|
Background=Achtergrond
|
||||||
BarDrain=Balk Leeglopen
|
BarDrain=Balk Leeglopen
|
||||||
|
|||||||
@@ -359,6 +359,7 @@ AutoMapOnJoyChange=If this setting is &oq;On&cq;, the game will remap joysticks
|
|||||||
AutoPlay=This option is useful for those who would like to play without using a pad. However, you will not be able to set high scores or earn extra stages while this option is ON.
|
AutoPlay=This option is useful for those who would like to play without using a pad. However, you will not be able to set high scores or earn extra stages while this option is ON.
|
||||||
AutogenGroupCourses=Show group Nonstop and Endless courses that were created by Autogen.
|
AutogenGroupCourses=Show group Nonstop and Endless courses that were created by Autogen.
|
||||||
AutogenSteps=Automatically generate steps from other game types.
|
AutogenSteps=Automatically generate steps from other game types.
|
||||||
|
AxisFix=Workaround for some adapters which map the D-Pad to Axis. Does not work on Mac OSX or Linux JS driver yet.
|
||||||
BGBrightness=Controls how bright the background will appear. Turn this setting down if you have a hard time seeing the notes.
|
BGBrightness=Controls how bright the background will appear. Turn this setting down if you have a hard time seeing the notes.
|
||||||
Background=Change options that control the backgrounds that play during gameplay.
|
Background=Change options that control the backgrounds that play during gameplay.
|
||||||
BackgroundFitMode=Change the way backgrounds are scaled to fit the screen.
|
BackgroundFitMode=Change the way backgrounds are scaled to fit the screen.
|
||||||
@@ -963,6 +964,7 @@ AutoMapOnJoyChange=Automap Joysticks
|
|||||||
AutoPlay=AutoPlay
|
AutoPlay=AutoPlay
|
||||||
AutogenGroupCourses=Autogen Group Courses
|
AutogenGroupCourses=Autogen Group Courses
|
||||||
AutogenSteps=Autogen Steps
|
AutogenSteps=Autogen Steps
|
||||||
|
AxisFix=Axis Fix
|
||||||
BGBrightness=Brightness
|
BGBrightness=Brightness
|
||||||
Background=Background
|
Background=Background
|
||||||
BackgroundFitMode=BG Fit Mode
|
BackgroundFitMode=BG Fit Mode
|
||||||
|
|||||||
@@ -354,6 +354,7 @@ AutoMapOnJoyChange=Si está activado, el juego redistribuirá los mandos que no
|
|||||||
AutoPlay=Esta opción es útil para quien quiera jugar sin plataforma. Sin embargo, no será posible optar a puntuaciones máximas o fases extra.
|
AutoPlay=Esta opción es útil para quien quiera jugar sin plataforma. Sin embargo, no será posible optar a puntuaciones máximas o fases extra.
|
||||||
AutogenGroupCourses=Mostrar cursos Sin parar e Infinitos creados con el generador automático.
|
AutogenGroupCourses=Mostrar cursos Sin parar e Infinitos creados con el generador automático.
|
||||||
AutogenSteps=Genera los pasos automáticamente a partir de otros modos de juego.
|
AutogenSteps=Genera los pasos automáticamente a partir de otros modos de juego.
|
||||||
|
AxisFix=Workaround for some adapters which map the D-Pad to Axis. Does not work on Mac OSX or Linux JS driver yet.
|
||||||
BGBrightness=Controla el brillo del fondo. Regula esta opción si te cuesta ver las notas.
|
BGBrightness=Controla el brillo del fondo. Regula esta opción si te cuesta ver las notas.
|
||||||
Background=Cambia opciones que controlan los fondos que se reproducen mientras juegas.
|
Background=Cambia opciones que controlan los fondos que se reproducen mientras juegas.
|
||||||
BarDrain=Drenado de barra.
|
BarDrain=Drenado de barra.
|
||||||
@@ -943,6 +944,7 @@ AutoMapOnJoyChange=Autoconfig. mandos
|
|||||||
AutoPlay=Autoreproducir
|
AutoPlay=Autoreproducir
|
||||||
AutogenGroupCourses=Autogen. grupo/cursos
|
AutogenGroupCourses=Autogen. grupo/cursos
|
||||||
AutogenSteps=Autogenerar pasos
|
AutogenSteps=Autogenerar pasos
|
||||||
|
AxisFix=Axis Fix
|
||||||
BGBrightness=Brillo
|
BGBrightness=Brillo
|
||||||
Background=Fondo
|
Background=Fondo
|
||||||
BarDrain=Drenado de barra
|
BarDrain=Drenado de barra
|
||||||
|
|||||||
@@ -356,6 +356,7 @@ AutoMapOnJoyChange=If this setting is &oq;On&cq;, the game will remap joysticks
|
|||||||
AutoPlay=This option is useful for those who would like to play without using a pad. However, you will not be able to set high scores or earn extra stages while this option is ON.
|
AutoPlay=This option is useful for those who would like to play without using a pad. However, you will not be able to set high scores or earn extra stages while this option is ON.
|
||||||
AutogenGroupCourses=Show group Nonstop and Endless courses that were created by Autogen.
|
AutogenGroupCourses=Show group Nonstop and Endless courses that were created by Autogen.
|
||||||
AutogenSteps=Automatically generate steps from other game types.
|
AutogenSteps=Automatically generate steps from other game types.
|
||||||
|
AxisFix=Workaround for some adapters which map the D-Pad to Axis. Does not work on Mac OSX or Linux JS driver yet.
|
||||||
BGBrightness=Controls how bright the background will appear. Turn this setting down if you have a hard time seeing the notes.
|
BGBrightness=Controls how bright the background will appear. Turn this setting down if you have a hard time seeing the notes.
|
||||||
Background=Change options that control the backgrounds that play during gameplay.
|
Background=Change options that control the backgrounds that play during gameplay.
|
||||||
BackgroundFitMode=Change the way backgrounds are scaled to fit the screen.
|
BackgroundFitMode=Change the way backgrounds are scaled to fit the screen.
|
||||||
@@ -1024,6 +1025,7 @@ HiddenSongs=Chansons Cachées
|
|||||||
EasterEggs=Oeufs de Pâque
|
EasterEggs=Oeufs de Pâque
|
||||||
UseUnlockSystem=Déverrouiller le Système
|
UseUnlockSystem=Déverrouiller le Système
|
||||||
AutogenSteps=Pas Autogen
|
AutogenSteps=Pas Autogen
|
||||||
|
AxisFix=Axis Fix
|
||||||
AutogenGroupCourses=Autogen Groupe de Parcours
|
AutogenGroupCourses=Autogen Groupe de Parcours
|
||||||
FastLoad=Chargement\nRapide
|
FastLoad=Chargement\nRapide
|
||||||
|
|
||||||
|
|||||||
@@ -543,6 +543,7 @@ AllowSongDeletion=ミュージックホイールでCtrl+Backspaceキーを押す
|
|||||||
AllowW1=Fantastic判定の使用範囲を設定します。NEVERでは出なくなります。\nCOURSES ONLYではExtendedモードかOniモードのみで出ます。\nALWAYSではどのモードでも出ます。
|
AllowW1=Fantastic判定の使用範囲を設定します。NEVERでは出なくなります。\nCOURSES ONLYではExtendedモードかOniモードのみで出ます。\nALWAYSではどのモードでも出ます。
|
||||||
AutogenGroupCourses=OnにするとExtendedモードとEndlessモードのコースが自動生成されます。
|
AutogenGroupCourses=OnにするとExtendedモードとEndlessモードのコースが自動生成されます。
|
||||||
AutogenSteps=Onにすると他のゲームモードやスタイルから譜面が自動生成されます。
|
AutogenSteps=Onにすると他のゲームモードやスタイルから譜面が自動生成されます。
|
||||||
|
AxisFix=Workaround for some adapters which map the D-Pad to Axis. Does not work on Mac OSX or Linux JS driver yet.
|
||||||
DefaultFailType=IMMEDIATEはゲージが無くなると即終了します。\nDELAYEDはゲージがなくなってからもミスが続くと終了します。\n END OF SONGはゲージが切れても最後まで演奏が続きます。
|
DefaultFailType=IMMEDIATEはゲージが無くなると即終了します。\nDELAYEDはゲージがなくなってからもミスが続くと終了します。\n END OF SONGはゲージが切れても最後まで演奏が続きます。
|
||||||
DefaultFailTypeNoOff=IMMEDIATEはゲージが無くなると即終了します。30 MISSESはゲージがなくなってから30ミスすると終了します。\n END OF SONGはゲージが切れても最後まで演奏が続きます。
|
DefaultFailTypeNoOff=IMMEDIATEはゲージが無くなると即終了します。30 MISSESはゲージがなくなってから30ミスすると終了します。\n END OF SONGはゲージが切れても最後まで演奏が続きます。
|
||||||
EasterEggs=このオプションをOnにして、Perfect以上で250コンボ繋ぐと…?
|
EasterEggs=このオプションをOnにして、Perfect以上で250コンボ繋ぐと…?
|
||||||
@@ -1034,6 +1035,7 @@ AutoMapOnJoyChange=Automap Joysticks
|
|||||||
AutoPlay=AutoPlay
|
AutoPlay=AutoPlay
|
||||||
AutogenGroupCourses=Autogen Group Courses
|
AutogenGroupCourses=Autogen Group Courses
|
||||||
AutogenSteps=Autogen Steps
|
AutogenSteps=Autogen Steps
|
||||||
|
AxisFix=Axis Fix
|
||||||
BGBrightness=Brightness
|
BGBrightness=Brightness
|
||||||
Background=Background
|
Background=Background
|
||||||
BackgroundFitMode=BG Fit Mode
|
BackgroundFitMode=BG Fit Mode
|
||||||
|
|||||||
@@ -357,6 +357,7 @@ AutoMapOnJoyChange=Als deze optie op &oq;Aan&cq; staat, zal het spel joysticks o
|
|||||||
AutoPlay=Deze optie is handig voor mensen die zonder mat willen spelen. Maar je kan geen extra nummers verdienen of high scores opslaan als dit aan staat.
|
AutoPlay=Deze optie is handig voor mensen die zonder mat willen spelen. Maar je kan geen extra nummers verdienen of high scores opslaan als dit aan staat.
|
||||||
AutogenGroupCourses=Laat de groep Nonstop en Eindeloos parkoers zien die door de Autogen gemaakt zijn.
|
AutogenGroupCourses=Laat de groep Nonstop en Eindeloos parkoers zien die door de Autogen gemaakt zijn.
|
||||||
AutogenSteps=Genereer automatisch de stappen voor andere speltypen.
|
AutogenSteps=Genereer automatisch de stappen voor andere speltypen.
|
||||||
|
AxisFix=Workaround for some adapters which map the D-Pad to Axis. Does not work on Mac OSX or Linux JS driver yet.
|
||||||
BGBrightness=Bepaalt hoe helder de achtergrond er uit ziet. Zet dit lager als je de noten niet goed kan zien.
|
BGBrightness=Bepaalt hoe helder de achtergrond er uit ziet. Zet dit lager als je de noten niet goed kan zien.
|
||||||
Background=Verander de opties die bepalen welke achtergronden tijdens het spelen zichtbaar zijn.
|
Background=Verander de opties die bepalen welke achtergronden tijdens het spelen zichtbaar zijn.
|
||||||
BackgroundFitMode=Verander de manier waarop achtergronden worden geschaald om op het scherm te passen.
|
BackgroundFitMode=Verander de manier waarop achtergronden worden geschaald om op het scherm te passen.
|
||||||
@@ -678,6 +679,7 @@ Ask=Vraag
|
|||||||
AttackMines=AanvalMijnen
|
AttackMines=AanvalMijnen
|
||||||
Auto=Vanzelf
|
Auto=Vanzelf
|
||||||
Autogen To Fill Width=Autogen om mee te vullen
|
Autogen To Fill Width=Autogen om mee te vullen
|
||||||
|
AxisFix=Axis Fix
|
||||||
AutosyncMachine=AutosyncMachine
|
AutosyncMachine=AutosyncMachine
|
||||||
Average Feet=Gemiddeld aantal Voeten
|
Average Feet=Gemiddeld aantal Voeten
|
||||||
Average=Gemiddeld
|
Average=Gemiddeld
|
||||||
|
|||||||
@@ -356,6 +356,7 @@ AutoMapOnJoyChange=Jeśli ta opcja jest włączona &oq;On&cq;, gra przemapuje au
|
|||||||
AutoPlay=Ta opcja może być użyteczna dla tych którzy z jakiegoś niezrozumiałego powodu chcą grać bez maty. W trybie AutoPlay nie da się zapisywać wyników ani zdobywać możliwości grania dodatkowych piosenek.
|
AutoPlay=Ta opcja może być użyteczna dla tych którzy z jakiegoś niezrozumiałego powodu chcą grać bez maty. W trybie AutoPlay nie da się zapisywać wyników ani zdobywać możliwości grania dodatkowych piosenek.
|
||||||
AutogenGroupCourses=Pokazuje Maratony wygenerowane przez opcję AutoGen w grupach NonStop i Nieskończone.
|
AutogenGroupCourses=Pokazuje Maratony wygenerowane przez opcję AutoGen w grupach NonStop i Nieskończone.
|
||||||
AutogenSteps=Automatyczne generowanie kroków dla innych typów gier nie uwzględnionych w stepchart`cie.
|
AutogenSteps=Automatyczne generowanie kroków dla innych typów gier nie uwzględnionych w stepchart`cie.
|
||||||
|
AxisFix=Workaround for some adapters which map the D-Pad to Axis. Does not work on Mac OSX or Linux JS driver yet.
|
||||||
BGBrightness=Ustala poziom jasność filmów odtwarzanych w tle piosenki. Zmniejsz wartość opcji jeśli masz trudności z widzeniem strzałek.
|
BGBrightness=Ustala poziom jasność filmów odtwarzanych w tle piosenki. Zmniejsz wartość opcji jeśli masz trudności z widzeniem strzałek.
|
||||||
Background=Zmienia opcje kontrolujące tła odtwarzanych w trakcie gry.
|
Background=Zmienia opcje kontrolujące tła odtwarzanych w trakcie gry.
|
||||||
BackgroundFitMode=Zmień sposób skalowania tła do rozmiaru ekranu.
|
BackgroundFitMode=Zmień sposób skalowania tła do rozmiaru ekranu.
|
||||||
@@ -947,6 +948,7 @@ AutoMapOnJoyChange=Automapowanie Joysticków
|
|||||||
AutoPlay=AutoPlay
|
AutoPlay=AutoPlay
|
||||||
AutogenGroupCourses=Autogen. Grup Maratonów
|
AutogenGroupCourses=Autogen. Grup Maratonów
|
||||||
AutogenSteps=Autogen. Kroków
|
AutogenSteps=Autogen. Kroków
|
||||||
|
AxisFix=Axis Fix
|
||||||
BGBrightness=Jasność
|
BGBrightness=Jasność
|
||||||
Background=Tło
|
Background=Tło
|
||||||
BackgroundFitMode=Tryb dopasowania Tła
|
BackgroundFitMode=Tryb dopasowania Tła
|
||||||
|
|||||||
@@ -3115,7 +3115,7 @@ Line14="conf,ShowSongOptions"
|
|||||||
Fallback="ScreenOptionsServiceChild"
|
Fallback="ScreenOptionsServiceChild"
|
||||||
NextScreen="ScreenOptionsService"
|
NextScreen="ScreenOptionsService"
|
||||||
PrevScreen="ScreenOptionsService"
|
PrevScreen="ScreenOptionsService"
|
||||||
LineNames="1,2,3,4,5,6,7"
|
LineNames="1,2,3,4,5,6,7,8"
|
||||||
Line1="conf,AutoMapOnJoyChange"
|
Line1="conf,AutoMapOnJoyChange"
|
||||||
Line2="conf,OnlyDedicatedMenuButtons"
|
Line2="conf,OnlyDedicatedMenuButtons"
|
||||||
Line3="conf,DelayedBack"
|
Line3="conf,DelayedBack"
|
||||||
@@ -3123,6 +3123,7 @@ Line4="conf,ArcadeOptionsNavigation"
|
|||||||
Line5="conf,ThreeKeyNavigation"
|
Line5="conf,ThreeKeyNavigation"
|
||||||
Line6="conf,MusicWheelSwitchSpeed"
|
Line6="conf,MusicWheelSwitchSpeed"
|
||||||
Line7="conf,InputDebounceTime"
|
Line7="conf,InputDebounceTime"
|
||||||
|
Line8="conf,AxisFix"
|
||||||
|
|
||||||
[ScreenOptionsArcade]
|
[ScreenOptionsArcade]
|
||||||
Fallback="ScreenOptionsServiceChild"
|
Fallback="ScreenOptionsServiceChild"
|
||||||
|
|||||||
@@ -775,6 +775,7 @@ static void InitializeConfOptions()
|
|||||||
ADD( ConfOption( "ThreeKeyNavigation", MovePref<bool>, "Five Key Menu", "Three Key Menu" ) );
|
ADD( ConfOption( "ThreeKeyNavigation", MovePref<bool>, "Five Key Menu", "Three Key Menu" ) );
|
||||||
ADD( ConfOption( "MusicWheelSwitchSpeed", MusicWheelSwitchSpeed, "Slow","Normal","Fast","Really Fast" ) );
|
ADD( ConfOption( "MusicWheelSwitchSpeed", MusicWheelSwitchSpeed, "Slow","Normal","Fast","Really Fast" ) );
|
||||||
ADD( ConfOption( "InputDebounceTime", InputDebounceTime, "0ms", "10ms", "20ms", "30ms", "40ms", "50ms", "60ms", "70ms", "80ms", "90ms", "100ms") );
|
ADD( ConfOption( "InputDebounceTime", InputDebounceTime, "0ms", "10ms", "20ms", "30ms", "40ms", "50ms", "60ms", "70ms", "80ms", "90ms", "100ms") );
|
||||||
|
ADD( ConfOption( "AxisFix", MovePref<bool>, "Off","On" ) );
|
||||||
|
|
||||||
// Gameplay options
|
// Gameplay options
|
||||||
ADD( ConfOption( "Center1Player", MovePref<bool>, "Off","On" ) );
|
ADD( ConfOption( "Center1Player", MovePref<bool>, "Off","On" ) );
|
||||||
|
|||||||
@@ -10,11 +10,13 @@
|
|||||||
#include "archutils/Win32/RegistryAccess.h"
|
#include "archutils/Win32/RegistryAccess.h"
|
||||||
#include "InputFilter.h"
|
#include "InputFilter.h"
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
|
#include "GamePreferences.h" //needed for Axis Fix
|
||||||
#include "Foreach.h"
|
#include "Foreach.h"
|
||||||
|
|
||||||
#include "InputHandler_DirectInputHelper.h"
|
#include "InputHandler_DirectInputHelper.h"
|
||||||
|
|
||||||
REGISTER_INPUT_HANDLER_CLASS2( DirectInput, DInput );
|
REGISTER_INPUT_HANDLER_CLASS2( DirectInput, DInput );
|
||||||
|
static Preference<bool> g_bAxisFix( "AxisFix", false );
|
||||||
|
|
||||||
static vector<DIDevice> Devices;
|
static vector<DIDevice> Devices;
|
||||||
|
|
||||||
@@ -587,9 +589,18 @@ void InputHandler_DInput::UpdateBuffered( DIDevice &device, const RageTimer &tm
|
|||||||
device.m_sName.c_str(), in.ofs );
|
device.m_sName.c_str(), in.ofs );
|
||||||
|
|
||||||
float l = SCALE( int(evtbuf[i].dwData), 0.0f, 100.0f, 0.0f, 1.0f );
|
float l = SCALE( int(evtbuf[i].dwData), 0.0f, 100.0f, 0.0f, 1.0f );
|
||||||
|
if(g_bAxisFix)
|
||||||
|
{
|
||||||
|
ButtonPressed( DeviceInput(dev, up, (l == 0) || (l == -1), tm) );
|
||||||
|
ButtonPressed( DeviceInput(dev, down,(l == 0) || (l == 1), tm) );
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
ButtonPressed( DeviceInput(dev, up, max(-l,0), tm) );
|
ButtonPressed( DeviceInput(dev, up, max(-l,0), tm) );
|
||||||
ButtonPressed( DeviceInput(dev, down, max(+l,0), tm) );
|
ButtonPressed( DeviceInput(dev, down, max(+l,0), tm) );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "LinuxInputManager.h"
|
#include "LinuxInputManager.h"
|
||||||
|
#include "GamePreferences.h" //needed for Axis Fix
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
@@ -13,6 +14,7 @@
|
|||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
|
|
||||||
REGISTER_INPUT_HANDLER_CLASS2( LinuxEvent, Linux_Event );
|
REGISTER_INPUT_HANDLER_CLASS2( LinuxEvent, Linux_Event );
|
||||||
|
static Preference<bool> g_bAxisFix( "AxisFix", false );
|
||||||
|
|
||||||
static RString BustypeToString( int iBus )
|
static RString BustypeToString( int iBus )
|
||||||
{
|
{
|
||||||
@@ -409,8 +411,16 @@ void InputHandler_Linux_Event::InputThread()
|
|||||||
DeviceButton pos = g_apEventDevices[i]->aiAbsMappingHigh[event.code];
|
DeviceButton pos = g_apEventDevices[i]->aiAbsMappingHigh[event.code];
|
||||||
|
|
||||||
float l = SCALE( int(event.value), (float) g_apEventDevices[i]->aiAbsMin[event.code], (float) g_apEventDevices[i]->aiAbsMax[event.code], -1.0f, 1.0f );
|
float l = SCALE( int(event.value), (float) g_apEventDevices[i]->aiAbsMin[event.code], (float) g_apEventDevices[i]->aiAbsMax[event.code], -1.0f, 1.0f );
|
||||||
|
if (g_bAxisFix)
|
||||||
|
{
|
||||||
|
ButtonPressed( DeviceInput(g_apEventDevices[i]->m_Dev, neg, (l < -0.5)||((l > 0.0001)&&(l < 0.5)), now) ); //Up if between 0.0001 and 0.5 or if less than -0.5
|
||||||
|
ButtonPressed( DeviceInput(g_apEventDevices[i]->m_Dev, pos, (l > 0.5)||((l > 0.0001)&&(l < 0.5)) , now) ); //Down if between 0.0001 and 0.5 or if more than 0.5
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
ButtonPressed( DeviceInput(g_apEventDevices[i]->m_Dev, neg, max(-l,0), now) );
|
ButtonPressed( DeviceInput(g_apEventDevices[i]->m_Dev, neg, max(-l,0), now) );
|
||||||
ButtonPressed( DeviceInput(g_apEventDevices[i]->m_Dev, pos, max(+l,0), now) );
|
ButtonPressed( DeviceInput(g_apEventDevices[i]->m_Dev, pos, max(+l,0), now) );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user