get rid of the '¯' chars in source code...non ascii chars are not really good to have floating around for no reason. http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Non-ASCII_Characters#Non-ASCII_Characters

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4231 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-09-08 16:07:13 +00:00
commit 3b76f6dc80
41 changed files with 162 additions and 162 deletions

View file

@ -1,6 +1,6 @@
// Project description
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//
@ -32,7 +32,7 @@
// Include
// ¯¯¯¯¯¯¯¯¯
// ---------
#include "nJoy.h"
#include "Common.h"
@ -44,7 +44,7 @@ extern PADConfigDialognJoy* m_ConfigFrame;
// Run when created
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// -----------------
Config::Config()
{
// Clear the memory
@ -53,7 +53,7 @@ Config::Config()
// Enable output log
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// -----------------
void DEBUG_INIT()
{
if (pFile)
@ -71,11 +71,11 @@ void DEBUG_INIT()
#ifdef _WIN32
fprintf(pFile, "Date: %s\nTime: %s\n", dateStr, timeStr);
#endif
fprintf(pFile, "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n");
fprintf(pFile, "---------------\n");
}
// Disable output log
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// ------------------
void DEBUG_QUIT()
{
if (!pFile)
@ -94,7 +94,7 @@ void DEBUG_QUIT()
// Save settings to file
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// ---------------------
void Config::Save(int Slot)
{
// If there are no good pads don't save
@ -106,7 +106,7 @@ void Config::Save(int Slot)
// ==================================================================
// Global settings
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// -----------------
file.Set("General", "ShowAdvanced", g_Config.bShowAdvanced);
file.Set("General", "SaveByID", g_Config.bSaveByID);
file.Set("General", "CheckForFocus", g_Config.bCheckFocus);
@ -125,7 +125,7 @@ void Config::Save(int Slot)
// ==================================================================
// Slot specific settings only
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// -----------------
std::string SectionName = StringFromFormat("PAD%i", i+1);
// Save the physical device ID
@ -134,7 +134,7 @@ void Config::Save(int Slot)
// ==================================================================
// Joypad or slot specific settings
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// -----------------
// Current joypad device ID: PadMapping[i].ID
// Current joypad name: joyinfo[PadMapping[i].ID].Name
if(g_Config.bSaveByID)
@ -193,7 +193,7 @@ void Config::Save(int Slot)
}
// Load settings from file
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// -----------------------
void Config::Load(bool ChangePad, bool ChangeSaveByID)
{
// If there are no good pads don't load
@ -206,7 +206,7 @@ void Config::Load(bool ChangePad, bool ChangeSaveByID)
// ==================================================================
// Global settings
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// -----------------
file.Get("General", "ShowAdvanced", &g_Config.bShowAdvanced, false);
file.Get("General", "CheckForFocus", &g_Config.bCheckFocus, false);
file.Get("General", "NoTriggerFilter", &g_Config.bNoTriggerFilter, false);
@ -234,7 +234,7 @@ void Config::Load(bool ChangePad, bool ChangeSaveByID)
// ==================================================================
// Joypad or slot specific settings
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
// -----------------
// Current joypad device ID: PadMapping[i].ID
// Current joypad name: joyinfo[PadMapping[i].ID].Name
if(g_Config.bSaveByID)

View file

@ -1,6 +1,6 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//

View file

@ -1,6 +1,6 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//

View file

@ -1,6 +1,6 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//
@ -32,7 +32,7 @@
// Include
// ッッッッッッッッッ
// ---------
#include "ConfigBox.h"
#include "../nJoy.h"
#include "Images/controller.xpm"
@ -45,7 +45,7 @@ extern bool g_EmulatorRunning;
bool StrangeHack = true;
// Set PAD status
// ッッッッッッッッッッッッッッ
// --------------
void PADConfigDialognJoy::PadGetStatus()
{
/* Return if it's not detected. The ID should never be less than zero here, it can only be that
@ -64,7 +64,7 @@ void PADConfigDialognJoy::PadGetStatus()
// Analog stick
// ッッッッッッッッッッッッッッッッッ
// -----------------
// Set Deadzones perhaps out of function
//int deadzone = (int)(((float)(128.00/100.00)) * (float)(PadMapping[_numPAD].deadzone+1));
//int deadzone2 = (int)(((float)(-128.00/100.00)) * (float)(PadMapping[_numPAD].deadzone+1));
@ -123,7 +123,7 @@ void PADConfigDialognJoy::PadGetStatus()
// Triggers
// ッッッッッッッッッッッッッッッッッ
// -----------------
int TriggerValue = 255;
if (PadState[notebookpage].halfpress) TriggerValue = 100;
@ -159,7 +159,7 @@ void PADConfigDialognJoy::PadGetStatus()
}
// Show the current pad status
// ッッッッッッッッッッッッッッッッッ
// -----------------
std::string ShowStatus(int VirtualController)
{
// Save the physical device
@ -237,7 +237,7 @@ std::string ShowStatus(int VirtualController)
}
// Populate the advanced tab
// ッッッッッッッッッッッッッッッッッ
// -----------------
void PADConfigDialognJoy::Update()
{
// Check that Dolphin is in focus, otherwise don't update the pad status
@ -265,7 +265,7 @@ void PADConfigDialognJoy::Update()
// Populate the advanced tab
// ッッッッッッッッッッッッッッッッッ
// -----------------
void PADConfigDialognJoy::CreateAdvancedControls(int i)
{
// Main-stick
@ -320,7 +320,7 @@ void PADConfigDialognJoy::CreateAdvancedControls(int i)
// Rerecording
// ッッッッッッッッッ
// ---------
#ifdef RERECORDING
// Create controls
m_SizeRecording[i] = new wxStaticBoxSizer(wxVERTICAL, m_Controller[i], wxT("Input Recording"));

View file

@ -1,5 +1,5 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//

View file

@ -1,6 +1,6 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//
@ -96,7 +96,7 @@ class PADConfigDialognJoy : public wxDialog
// Settings
// ッッッッッッッッッ
// ---------
wxComboBox *m_Joyname[4];
wxComboBox *m_ControlType[4], *m_TriggerType[4];
@ -133,7 +133,7 @@ class PADConfigDialognJoy : public wxDialog
// Keys
// ッッッッッッッッッ
// ---------
int g_Pressed; // Keyboard input
wxTextCtrl *m_JoyShoulderL[4];

View file

@ -1,6 +1,6 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//
@ -32,7 +32,7 @@
// Include
// ッッッッッッッッッ
// ---------
#include "math.h" // System
#include "ConfigBox.h" // Local
@ -44,7 +44,7 @@ extern bool g_EmulatorRunning;
// Set dialog items from saved values
// ッッッッッッッッッッッッッッッッ
// ----------------
void PADConfigDialognJoy::UpdateGUIButtonMapping(int controller)
{
// http://wiki.wxwidgets.org/Converting_everything_to_and_from_wxString
@ -177,7 +177,7 @@ void PADConfigDialognJoy::SaveButtonMapping(int controller, bool DontChangeId, i
}
// Update the textbox for the buttons
// ッッッッッッッッッッッッッッッッ
// ----------------
void PADConfigDialognJoy::SetButtonText(int id, const char *text, int Page)
{
// Set controller value
@ -212,7 +212,7 @@ void PADConfigDialognJoy::SetButtonText(int id, const char *text, int Page)
}
// Get the text in the textbox for the buttons
// ッッッッッッッッッッッッッッッッ
// ----------------
wxString PADConfigDialognJoy::GetButtonText(int id, int Page)
{
// Set controller value
@ -253,11 +253,11 @@ wxString PADConfigDialognJoy::GetButtonText(int id, int Page)
// Configure button mapping
// ッッッッッッッッッッ
// ----------
// Wait for button press
// ッッッッッッッッッッッッッッッッッッッッッ
// ---------------------
/* Loop or timer: There are basically two ways to do this. With a while() or for() loop, or with a
timer. The downside with the while() or for() loop is that there is no way to stop it if the user
should select to configure another button while we are still in an old loop. What will happen then

View file

@ -1,6 +1,6 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//
@ -32,7 +32,7 @@
// File description
/* ッッッッッッッッッ
/* ---------
Rerecording options
@ -41,7 +41,7 @@ Rerecording options
// Include
// ッッッッッッッッッ
// ---------
#include "nJoy.h"
#include "FileUtil.h"
#include "ChunkFile.h"
@ -57,7 +57,7 @@ namespace Recording
// Definitions
// ッッッッッッッッッッッッッ
// -------------
// Pre defined maxium storage limit
#define RECORD_SIZE (1024 * 128)
SPADStatus RecordBuffer[RECORD_SIZE];
@ -68,7 +68,7 @@ int count = 0;
// Recording functions
// ッッッッッッッッッッッッッ
// -------------
void RecordInput(const SPADStatus& _rPADStatus)
{
if (count >= RECORD_SIZE) return;

View file

@ -1,6 +1,6 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//
@ -32,13 +32,13 @@
// Include
// ッッッッッッッッッ
// ---------
#include "nJoy.h"
// Enable or disable rumble.
// ッッッッッッッッッ
// ---------
// Rumble in windows
#ifdef _WIN32
@ -74,7 +74,7 @@
// Use PAD rumble
// ッッッッッッッッッッッッッッ
// --------------
void Pad_Use_Rumble(u8 _numPAD)
{
@ -130,7 +130,7 @@ void Pad_Use_Rumble(u8 _numPAD)
// Set PAD rumble. Explanation: Stop = 0, Rumble = 1
// ッッッッッッッッッッッッッッ
// --------------
void PAD_Rumble(u8 _numPAD, unsigned int _uType, unsigned int _uStrength)
{
@ -189,7 +189,7 @@ void PAD_Rumble(u8 _numPAD, unsigned int _uType, unsigned int _uStrength)
#ifdef _WIN32
// Rumble stuff :D!
// ッッッッッッッッッッッッッッッッ
// ----------------
//
HRESULT InitRumble(HWND hWnd)

View file

@ -1,6 +1,6 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//
@ -33,7 +33,7 @@
// Issues
/* ッッッッッッッッッ
/* ---------
The StrangeHack in ConfigAdvanced.cpp doesn't work in Linux, it still wont resize the
window correctly. So currently in Linux you have to have advanced controls enabled when
@ -46,7 +46,7 @@
// Variables guide
/* ッッッッッッッッッ
/* ---------
Joyinfo[1, 2, 3, 4, ..., number of attached devices]: Gamepad info that is populate by Search_Devices()
PadMapping[1, 2, 3 and 4]: The button mapping
@ -67,7 +67,7 @@
// Include
// ッッッッッッッッッ
// ---------
#include "nJoy.h"
#include "LogManager.h"
@ -80,7 +80,7 @@
// Variables
// ッッッッッッッッッ
// ---------
#define _EXCLUDE_MAIN_ // Avoid certain declarations in nJoy.h
FILE *pFile;
@ -167,10 +167,10 @@ wxWindow* GetParentedWxWindow(HWND Parent)
// Input Plugin Functions (from spec's)
// ッッッッッッッッッッッッッッッッッッッッッッッッッッッッッッッッッッッッ
// ------------------------------------
// Get properties of plugin
// ッッッッッッッッッッッッッッッッッッッッッッッッ
// ------------------------
void GetDllInfo(PLUGIN_INFO* _PluginInfo)
{
_PluginInfo->Version = 0x0100;
@ -195,7 +195,7 @@ void SetDllGlobals(PLUGIN_GLOBALS* _pPluginGlobals)
// Call config dialog
// ッッッッッッッッッッッッッッッッッッ
// ------------------
void DllConfig(HWND _hParent)
{
#ifdef _WIN32
@ -239,7 +239,7 @@ void DllDebugger(HWND _hParent, bool Show) {}
// Init PAD (start emulation)
// ッッッッッッッッッッッッッッッッッッッッッッッッッッ
// --------------------------
/* Information: This function can not be run twice without a Shutdown in between. If
it's run twice the SDL_Init() will cause a crash. One solution to this is to keep a
global function that remembers the SDL_Init() and SDL_Quit() (g_EmulatorRunning does
@ -279,7 +279,7 @@ void Initialize(void *init)
}
// Shutdown PAD (stop emulation)
// ッッッッッッッッッッッッッッッッッッッッッッッッッッッッッ
// -----------------------------
/* Information: This function can not be run twice without an Initialize in between. If
it's run twice the SDL_...() functions below will cause a crash.
Called from: The Dolphin Core, PADConfigDialognJoy::OnClose() */
@ -343,7 +343,7 @@ void Shutdown()
// Set buttons status from keyboard input. Currently this is done from wxWidgets in the main application.
// ッッッッッッッッッッッッッッ
// --------------
void PAD_Input(u16 _Key, u8 _UpDown)
{
// Check that Dolphin is in focus, otherwise don't update the pad status
@ -371,7 +371,7 @@ void PAD_Input(u16 _Key, u8 _UpDown)
// Save state
// ッッッッッッッッッッッッッッ
// --------------
void DoState(unsigned char **ptr, int mode)
{
#ifdef RERECORDING
@ -381,7 +381,7 @@ void DoState(unsigned char **ptr, int mode)
// Set PAD status
// ッッッッッッッッッッッッッッ
// --------------
// Called from: SI_DeviceGCController.cpp
// Function: Gives the current pad status to the Core
void PAD_GetStatus(u8 _numPAD, SPADStatus* _pPADStatus)
@ -595,7 +595,7 @@ void PAD_GetStatus(u8 _numPAD, SPADStatus* _pPADStatus)
// Search for SDL devices
// ッッッッッッッッッッッッッッッッ
// ----------------
bool Search_Devices(std::vector<InputCommon::CONTROLLER_INFO> &_joyinfo, int &_NumPads, int &_NumGoodPads)
{
bool Success = InputCommon::SearchDevices(_joyinfo, _NumPads, _NumGoodPads);
@ -625,7 +625,7 @@ bool Search_Devices(std::vector<InputCommon::CONTROLLER_INFO> &_joyinfo, int &_N
/* Check if any of the pads failed to open. In Windows there is a strange "IDirectInputDevice2::
SetDataFormat() DirectX error -2147024809" after exactly four SDL_Init() and SDL_Quit() */
// ッッッッッッッッッッッッッッッッ
// ----------------
bool ReloadDLL()
{
if ( (PadState[0].joy == NULL)
@ -654,7 +654,7 @@ bool ReloadDLL()
// Check if Dolphin is in focus
// ッッッッッッッッッッッッッッッッ
// ----------------
bool IsFocus()
{
return true;

View file

@ -1,6 +1,6 @@
// Project description
// ッッッッッッッッッッッッッッッッッッッ
// -------------------
// Name: nJoy
// Description: A Dolphin Compatible Input Plugin
//
@ -35,7 +35,7 @@
// Includes
// ッッッッッッッッッッ
// ----------
#include <vector> // System
#include <cstdio>
#include <ctime>
@ -80,7 +80,7 @@
// Define
// ッッッッッッッッッッ
// ----------
#define INPUT_VERSION "0.3"
#define INPUT_STATE wxT("PUBLIC RELEASE")
@ -92,7 +92,7 @@
// Input vector. Todo: Save the configured keys here instead of in joystick
// ッッッッッッッッッ
// ---------
/*
#ifndef _CONTROLLER_STATE_H
extern std::vector<u8> Keys;
@ -103,7 +103,7 @@ extern std::vector<u8> Keys;
// Variables
// ッッッッッッッッッ
// ---------
#ifndef _EXCLUDE_MAIN_
extern SPADInitialize *g_PADInitialize;
extern FILE *pFile;
@ -120,7 +120,7 @@ extern std::vector<u8> Keys;
// Custom Functions
// ッッッッッッッッッッッッッッッッ
// ----------------
bool Search_Devices(std::vector<InputCommon::CONTROLLER_INFO> &_joyinfo, int &_NumPads, int &_NumGoodPads);
void DEBUG_INIT();
void DEBUG_QUIT();
@ -135,7 +135,7 @@ HRESULT InitRumble(HWND hWnd);
// ReRecording
// ッッッッッッッッッッッッッッッッ
// ----------------
#ifdef RERECORDING
namespace Recording
{