mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-10 03:44:26 +00:00
nJoy:
- nothing special, just a default nJoy.ini. - Controller 1 contains a profile for the logitech rumblepad 2 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@71 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
d8ed24fd29
commit
690b7d4e1e
92
Binary/linux/nJoy.ini
Normal file
92
Binary/linux/nJoy.ini
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
[PAD1]
|
||||||
|
l_shoulder = 4
|
||||||
|
r_shoulder = 5
|
||||||
|
a_button = 0
|
||||||
|
b_button = 1
|
||||||
|
x_button = 3
|
||||||
|
y_button = 2
|
||||||
|
z_trigger = 7
|
||||||
|
start_button = 9
|
||||||
|
dpad = 0
|
||||||
|
dpad_up = 0
|
||||||
|
dpad_down = 0
|
||||||
|
dpad_left = 0
|
||||||
|
dpad_right = 0
|
||||||
|
main_x = 0
|
||||||
|
main_y = 1
|
||||||
|
sub_x = 2
|
||||||
|
sub_y = 3
|
||||||
|
enabled = 1
|
||||||
|
deadzone = 9
|
||||||
|
halfpress = 6
|
||||||
|
joy_id = 0
|
||||||
|
controllertype = 0
|
||||||
|
[PAD2]
|
||||||
|
l_shoulder = 4
|
||||||
|
r_shoulder = 5
|
||||||
|
a_button = 0
|
||||||
|
b_button = 1
|
||||||
|
x_button = 3
|
||||||
|
y_button = 2
|
||||||
|
z_trigger = 7
|
||||||
|
start_button = 9
|
||||||
|
dpad = 0
|
||||||
|
dpad_up = 0
|
||||||
|
dpad_down = 0
|
||||||
|
dpad_left = 0
|
||||||
|
dpad_right = 0
|
||||||
|
main_x = 0
|
||||||
|
main_y = 1
|
||||||
|
sub_x = 2
|
||||||
|
sub_y = 3
|
||||||
|
enabled = 0
|
||||||
|
deadzone = 9
|
||||||
|
halfpress = 6
|
||||||
|
joy_id = 0
|
||||||
|
controllertype = 0
|
||||||
|
[PAD3]
|
||||||
|
l_shoulder = 4
|
||||||
|
r_shoulder = 5
|
||||||
|
a_button = 0
|
||||||
|
b_button = 1
|
||||||
|
x_button = 3
|
||||||
|
y_button = 2
|
||||||
|
z_trigger = 7
|
||||||
|
start_button = 9
|
||||||
|
dpad = 0
|
||||||
|
dpad_up = 0
|
||||||
|
dpad_down = 0
|
||||||
|
dpad_left = 0
|
||||||
|
dpad_right = 0
|
||||||
|
main_x = 0
|
||||||
|
main_y = 1
|
||||||
|
sub_x = 2
|
||||||
|
sub_y = 3
|
||||||
|
enabled = 0
|
||||||
|
deadzone = 9
|
||||||
|
halfpress = 6
|
||||||
|
joy_id = 0
|
||||||
|
controllertype = 0
|
||||||
|
[PAD4]
|
||||||
|
l_shoulder = 4
|
||||||
|
r_shoulder = 5
|
||||||
|
a_button = 0
|
||||||
|
b_button = 1
|
||||||
|
x_button = 3
|
||||||
|
y_button = 2
|
||||||
|
z_trigger = 7
|
||||||
|
start_button = 9
|
||||||
|
dpad = 0
|
||||||
|
dpad_up = 0
|
||||||
|
dpad_down = 0
|
||||||
|
dpad_left = 0
|
||||||
|
dpad_right = 0
|
||||||
|
main_x = 0
|
||||||
|
main_y = 1
|
||||||
|
sub_x = 2
|
||||||
|
sub_y = 3
|
||||||
|
enabled = 0
|
||||||
|
deadzone = 9
|
||||||
|
halfpress = 6
|
||||||
|
joy_id = 0
|
||||||
|
controllertype = 0
|
@ -28,9 +28,9 @@
|
|||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// whole file... until we fix the GUI
|
// whole file... until we fix the GUI
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
#include "nJoy.h"
|
#include "nJoy.h"
|
||||||
|
|
||||||
@ -616,4 +616,4 @@ BOOL CALLBACK AboutDlg(HWND abouthWnd, UINT message, WPARAM wParam, LPARAM lPara
|
|||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -28,10 +28,10 @@
|
|||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// whole file... until we fix the GUI
|
// whole file... until we fix the GUI
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
#include <windows.h> // includes basic windows functionality
|
#include <windows.h> // includes basic windows functionality
|
||||||
#include <Windowsx.h>
|
#include <Windowsx.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -69,6 +69,6 @@ void SetButton(HWND hDlg, int item, int value);
|
|||||||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||||
|
|
||||||
void OpenAbout(HINSTANCE hInst, HWND _hParent);
|
void OpenAbout(HINSTANCE hInst, HWND _hParent);
|
||||||
BOOL CALLBACK AboutDlg(HWND abouthWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
BOOL CALLBACK AboutDlg(HWND abouthWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -44,7 +44,7 @@ bool emulator_running = FALSE;
|
|||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// DllMain
|
// DllMain
|
||||||
// ¯¯¯¯¯¯¯
|
// ¯¯¯¯¯¯¯
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
BOOL APIENTRY DllMain( HINSTANCE hinstDLL, // DLL module handle
|
BOOL APIENTRY DllMain( HINSTANCE hinstDLL, // DLL module handle
|
||||||
DWORD dwReason, // reason called
|
DWORD dwReason, // reason called
|
||||||
@ -55,7 +55,7 @@ BOOL APIENTRY DllMain( HINSTANCE hinstDLL, // DLL module handle
|
|||||||
nJoy_hInst = hinstDLL;
|
nJoy_hInst = hinstDLL;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Input Plugin Functions (from spec's)
|
// Input Plugin Functions (from spec's)
|
||||||
@ -78,16 +78,16 @@ void GetDllInfo(PLUGIN_INFO* _PluginInfo)
|
|||||||
// Call about dialog
|
// Call about dialog
|
||||||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||||
void DllAbout(HWND _hParent)
|
void DllAbout(HWND _hParent)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
OpenAbout(nJoy_hInst, _hParent);
|
OpenAbout(nJoy_hInst, _hParent);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call config dialog
|
// Call config dialog
|
||||||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||||
void DllConfig(HWND _hParent)
|
void DllConfig(HWND _hParent)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if(SDL_Init(SDL_INIT_JOYSTICK ) < 0)
|
if(SDL_Init(SDL_INIT_JOYSTICK ) < 0)
|
||||||
{
|
{
|
||||||
@ -100,7 +100,7 @@ void DllConfig(HWND _hParent)
|
|||||||
{
|
{
|
||||||
SaveConfig();
|
SaveConfig();
|
||||||
}
|
}
|
||||||
LoadConfig(); // reload settings
|
LoadConfig(); // reload settings
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,11 +114,11 @@ void PAD_Initialize(SPADInitialize _PADInitialize)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(SDL_Init(SDL_INIT_JOYSTICK ) < 0)
|
if(SDL_Init(SDL_INIT_JOYSTICK ) < 0)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
MessageBox(NULL, SDL_GetError(), "Could not initialize SDL!", MB_ICONERROR);
|
MessageBox(NULL, SDL_GetError(), "Could not initialize SDL!", MB_ICONERROR);
|
||||||
#else
|
#else
|
||||||
printf("Could not initialize SDL! (%s)\n", SDL_GetError());
|
printf("Could not initialize SDL! (%s)\n", SDL_GetError());
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -356,11 +356,11 @@ int Search_Devices()
|
|||||||
int numjoy = SDL_NumJoysticks();
|
int numjoy = SDL_NumJoysticks();
|
||||||
|
|
||||||
if(numjoy == 0)
|
if(numjoy == 0)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
MessageBox(NULL, "No Joystick detected!", NULL, MB_ICONWARNING);
|
MessageBox(NULL, "No Joystick detected!", NULL, MB_ICONWARNING);
|
||||||
#else
|
#else
|
||||||
printf("No Joystick detected!\n");
|
printf("No Joystick detected!\n");
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -413,18 +413,18 @@ void DEBUG_INIT()
|
|||||||
{
|
{
|
||||||
if(pFile)
|
if(pFile)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
char dateStr [9];
|
char dateStr [9];
|
||||||
_strdate( dateStr);
|
_strdate( dateStr);
|
||||||
char timeStr [9];
|
char timeStr [9];
|
||||||
_strtime( timeStr );
|
_strtime( timeStr );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pFile = fopen ("nJoy-debug.txt","wt");
|
pFile = fopen ("nJoy-debug.txt","wt");
|
||||||
fprintf(pFile, "nJoy v"INPUT_VERSION" Debug\n");
|
fprintf(pFile, "nJoy v"INPUT_VERSION" Debug\n");
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
fprintf(pFile, "Date: %s\nTime: %s\n", dateStr, timeStr);
|
fprintf(pFile, "Date: %s\nTime: %s\n", dateStr, timeStr);
|
||||||
#endif
|
#endif
|
||||||
fprintf(pFile, "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n");
|
fprintf(pFile, "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n");
|
||||||
}
|
}
|
||||||
@ -435,13 +435,13 @@ void DEBUG_QUIT()
|
|||||||
{
|
{
|
||||||
if(!pFile)
|
if(!pFile)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
char timeStr [9];
|
char timeStr [9];
|
||||||
_strtime(timeStr);
|
_strtime(timeStr);
|
||||||
|
|
||||||
fprintf(pFile, "_______________\n");
|
fprintf(pFile, "_______________\n");
|
||||||
fprintf(pFile, "Time: %s", timeStr);
|
fprintf(pFile, "Time: %s", timeStr);
|
||||||
#endif
|
#endif
|
||||||
fclose(pFile);
|
fclose(pFile);
|
||||||
}
|
}
|
||||||
|
@ -28,25 +28,25 @@
|
|||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <SDL.h> // includes SDL
|
#include <SDL.h> // includes SDL
|
||||||
|
|
||||||
#include "Common.h" // only linux?
|
#include "Common.h"
|
||||||
|
|
||||||
#include "pluginspecs_pad.h"
|
#include "pluginspecs_pad.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#pragma comment(lib, "SDL.lib")
|
#pragma comment(lib, "SDL.lib")
|
||||||
#endif
|
#endif
|
||||||
@ -137,4 +137,4 @@ void DEBUG_INIT();
|
|||||||
void DEBUG_QUIT();
|
void DEBUG_QUIT();
|
||||||
|
|
||||||
void SaveConfig();
|
void SaveConfig();
|
||||||
void LoadConfig();
|
void LoadConfig();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user