Commit 01314637 authored by Ben Hymers's avatar Ben Hymers
Browse files

Removed all trailing whitespace

parent b408932f
......@@ -6,20 +6,20 @@ The zlib/libpng License
Copyright (c) 2005-2010 Phillip Castaneda (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no
event will the authors be held liable for any damages arising from the use of this
This software is provided 'as-is', without any express or implied warranty. In no
event will the authors be held liable for any damages arising from the use of this
software.
Permission is granted to anyone to use this software for any purpose, including
commercial applications, and to alter it and redistribute it freely, subject to the
Permission is granted to anyone to use this software for any purpose, including
commercial applications, and to alter it and redistribute it freely, subject to the
following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated
but is not required.
2. Altered source versions must be plainly marked as such, and must not be
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
......@@ -28,9 +28,9 @@ following restrictions:
======================================================================================
================ LICENSE EXPLAINED ===================================================
======================================================================================
In case the license was not clear enough... Basically, you can link with this lib
which puts no restrictions on what you have to license your code as. You can modify
this lib, and not have release your changes. Though, as explained above, <bold>
In case the license was not clear enough... Basically, you can link with this lib
which puts no restrictions on what you have to license your code as. You can modify
this lib, and not have release your changes. Though, as explained above, <bold>
Altered source versions must be plainly marked as such, and must not be misrepresented
as being the original software </bold>
......@@ -40,13 +40,13 @@ This is to allow users the greatest flexibility in what you can use this lib for
================ INFO ================================================================
======================================================================================
Cross Platform Object Oriented Input Lib System. Meant to be very robust and
Cross Platform Object Oriented Input Lib System. Meant to be very robust and
compatiable with many systems and operating systems
Win32/
Contains Visual Studio .Net Solution Files
Contains CodeBlocks project files for OIS
---- Dependencies ------------------------------------------------------
DirectInput 8
......
......@@ -31,18 +31,18 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
// TEXTINCLUDE
//
1 TEXTINCLUDE
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
......@@ -72,7 +72,7 @@ END
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
GUIDELINES DESIGNINFO
BEGIN
IDD_DIALOG1, DIALOG
BEGIN
......
......@@ -6,7 +6,7 @@
#define IDC_BUTTON1 1001
// Next default values for new objects
//
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
......
......@@ -11,7 +11,7 @@
#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif
#include "winresrc.h"
#include "winresrc.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
......@@ -31,18 +31,18 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
// TEXTINCLUDE
//
1 TEXTINCLUDE
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
......@@ -72,7 +72,7 @@ END
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
GUIDELINES DESIGNINFO
BEGIN
IDD_DIALOG1, DIALOG
BEGIN
......
......@@ -6,7 +6,7 @@
#define IDC_BUTTON1 1001
// Next default values for new objects
//
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
......
......@@ -27,18 +27,18 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
// TEXTINCLUDE
//
1 TEXTINCLUDE
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
......
......@@ -80,7 +80,7 @@ INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
hWnd = CreateDialog( 0, MAKEINTRESOURCE(IDD_MAIN_WINDOW), 0,(DLGPROC)DlgProc);
if( hWnd == 0 ) exit(-1);
ShowWindow(hWnd, SW_SHOW);
hOut = GetDlgItem(hWnd, IDC_OUTPUT);
if(hOut == 0) exit(-1);
......@@ -146,7 +146,7 @@ void initSDL()
if( SDL_Init(SDL_INIT_VIDEO) < 0 )
throw("Error!");
SDL_Surface *screen = SDL_SetVideoMode( r.right-r.left, r.bottom-r.top, 32, SDL_HWSURFACE );
//SDL_Surface *screen = SDL_SetVideoMode( r.right-r.left, r.bottom-r.top, 0, 0 );
//SetWindowPos(hDisp, 0, r.left, r.top, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
OutputMessage("Success!");
......@@ -169,7 +169,7 @@ void initOIS()
gMouse = static_cast<Mouse*>(im->createInputObject(OISMouse, false));
gMouse->setEventCallback( &gHandler );
std::ostringstream temp;
unsigned int v = im->getVersionNumber();
temp << "Success! >> " << "Version: " << (v>>16 ) << "." << ((v>>8) & 0x000000FF)
......
......@@ -27,18 +27,18 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
// TEXTINCLUDE
//
1 TEXTINCLUDE
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
......@@ -71,7 +71,7 @@ END
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
GUIDELINES DESIGNINFO
BEGIN
IDD_MAIN_WINDOW, DIALOG
BEGIN
......
......@@ -11,7 +11,7 @@
#define IDC_BUTTON1 1006
// Next default values for new objects
//
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
......
......@@ -3,7 +3,7 @@
// Used by OIS.rc
// Next default values for new objects
//
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
......
AC_DEFUN([OIS_USE_STLPORT],
[AC_ARG_WITH(stlport,
[AC_ARG_WITH(stlport,
AC_HELP_STRING([--with-stlport=PATH],
[the path to STLPort.]),
ac_cv_use_stlport=$withval,
......
......@@ -12,4 +12,4 @@ libtoolize --force --copy
aclocal $ACLOCAL_FLAGS
autoheader
automake --include-deps --add-missing --foreign --copy
autoconf
autoconf
......@@ -113,12 +113,12 @@ class LimitedVariable : public Variable
public:
LimitedVariable(double dInitValue, double dMinValue, double dMaxValue)
LimitedVariable(double dInitValue, double dMinValue, double dMaxValue)
: _dMinValue(dMinValue), _dMaxValue(dMaxValue), Variable(dInitValue)
{}
virtual void setValue(double dValue)
{
virtual void setValue(double dValue)
{
_dValue = dValue;
if (_dValue > _dMaxValue)
_dValue = _dMaxValue;
......@@ -129,7 +129,7 @@ class LimitedVariable : public Variable
/* virtual string toString() const
{
ostringstream oss;
oss << setiosflags(ios_base::right) << setw(4)
oss << setiosflags(ios_base::right) << setw(4)
<< (int)(200.0 * getValue()/(_dMaxValue - _dMinValue)); // [-100%, +100%]
return oss.str();
}*/
......@@ -143,7 +143,7 @@ class TriangleVariable : public LimitedVariable
public:
TriangleVariable(double dInitValue, double dDeltaValue, double dMinValue, double dMaxValue)
TriangleVariable(double dInitValue, double dDeltaValue, double dMinValue, double dMaxValue)
: LimitedVariable(dInitValue, dMinValue, dMaxValue), _dDeltaValue(dDeltaValue) {};
virtual void update()
......@@ -192,9 +192,9 @@ class VariableEffect
public:
VariableEffect(const char* pszDesc, Effect* pEffect,
VariableEffect(const char* pszDesc, Effect* pEffect,
const MapVariables& mapVars, const EffectVariablesApplier pfApplyVars)
: _pszDesc(pszDesc), _pEffect(pEffect),
: _pszDesc(pszDesc), _pEffect(pEffect),
_mapVariables(mapVars), _pfApplyVariables(pfApplyVars), _bActive(false)
{}
......@@ -206,7 +206,7 @@ class VariableEffect
for (iterVars = _mapVariables.begin(); iterVars != _mapVariables.end(); iterVars++)
if (iterVars->second)
delete iterVars->second;
}
void setActive(bool bActive = true)
......@@ -294,13 +294,13 @@ class JoystickManager
{
_bFFFound = false;
for( int nJoyInd = 0; nJoyInd < pInputMgr->getNumberOfDevices(OISJoyStick); ++nJoyInd )
for( int nJoyInd = 0; nJoyInd < pInputMgr->getNumberOfDevices(OISJoyStick); ++nJoyInd )
{
//Create the stick
JoyStick* pJoy = (JoyStick*)pInputMgr->createInputObject( OISJoyStick, true );
cout << endl << "Created buffered joystick #" << nJoyInd << " '" << pJoy->vendor()
cout << endl << "Created buffered joystick #" << nJoyInd << " '" << pJoy->vendor()
<< "' (Id=" << pJoy->getID() << ")";
// Check for FF, and if so, keep the joy and dump FF info
ForceFeedback* pFFDev = (ForceFeedback*)pJoy->queryInterface(Interface::ForceFeedback );
if( pFFDev )
......@@ -313,11 +313,11 @@ class JoystickManager
// Keep also the associated FF device
_vecFFDev.push_back(pFFDev);
// Dump FF supported effects and other info.
cout << endl << " * Number of force feedback axes : "
cout << endl << " * Number of force feedback axes : "
<< pFFDev->getFFAxesNumber() << endl;
const ForceFeedback::SupportedEffectList &lstFFEffects =
const ForceFeedback::SupportedEffectList &lstFFEffects =
pFFDev->getSupportedEffects();
if (lstFFEffects.size() > 0)
{
......@@ -393,7 +393,7 @@ class JoystickManager
_dMasterGain = 1.0;
else if (_dMasterGain < 0.0)
_dMasterGain = 0.0;
_vecFFDev[_nCurrJoyInd]->setMasterGain(_dMasterGain);
}
}
......@@ -416,7 +416,7 @@ class JoystickManager
{
// This fires off buffered events for each joystick we have
for(size_t nJoyInd = 0; nJoyInd < _vecJoys.size(); ++nJoyInd)
if( _vecJoys[nJoyInd] )
if( _vecJoys[nJoyInd] )
_vecJoys[nJoyInd]->capture();
}
......@@ -482,7 +482,7 @@ class EffectManager
public:
EffectManager(JoystickManager* pJoystickMgr, unsigned int nUpdateFreq)
EffectManager(JoystickManager* pJoystickMgr, unsigned int nUpdateFreq)
: _pJoystickMgr(pJoystickMgr), _nUpdateFreq(nUpdateFreq), _nCurrEffectInd(-1)
{
Effect* pEffect;
......@@ -490,16 +490,16 @@ class EffectManager
ConstantEffect* pConstForce;
PeriodicEffect* pPeriodForce;
// Please don't modify or remove effects (unless there is some bug ...) :
// Please don't modify or remove effects (unless there is some bug ...) :
// add new ones to enhance the test repository.
// And feel free to add any tested device, even when the test failed !
// Tested devices capabilities :
// - Logitech G25 Racing wheel :
// - Logitech G25 Racing wheel :
// * Only 1 axis => no directional 2D effect (only left and right)
// * Full support for constant force under WinXPSP2DX9 and Linux 2.6.22.9
// * Full support for periodic forces under WinXPSP2DX9
// * Full support for periodic forces under WinXPSP2DX9
// (but poor rendering under 20ms period), and no support under Linux 2.6.22.9
// * Full support reported (not tested) for all other forces under WinXPSP2DX9,
// * Full support reported (not tested) for all other forces under WinXPSP2DX9,
// and no support under Linux 2.6.22.9
// - Logitech Rumble pad 2 :
// * Only 1 axis => no directional 2D effect (only left and right)
......@@ -521,7 +521,7 @@ class EffectManager
// Notes: Linux: replay_length: no way to get it to work if not 0 or Effect::OIS_INFINITE
// Tested devices :
// - Logitech G25 Racing wheel : WinXPSP2DX9=OK, Linux2.6.22.9=OK.
// - Logitech Rumble pad 2 : WinXPSP2DX9=OK (but only light motor involved),
// - Logitech Rumble pad 2 : WinXPSP2DX9=OK (but only light motor involved),
// Linux2.6.22.9=Not supported
pEffect = new Effect(Effect::ConstantForce, Effect::Constant);
pEffect->direction = Effect::North;
......@@ -538,10 +538,10 @@ class EffectManager
pConstForce->envelope.fadeLevel = (unsigned short)pConstForce->level;
mapVars.clear();
mapVars["Force"] =
mapVars["Force"] =
new TriangleVariable(0.0, // F0
4*10000/_nUpdateFreq / 20.0, // dF for a 20s-period triangle
-10000.0, // Fmin
-10000.0, // Fmin
10000.0); // Fmax
mapVars["AttackFactor"] = new Constant(1.0);
......@@ -551,11 +551,11 @@ class EffectManager
"of its signed amplitude in [-10K, +10K]",
pEffect, mapVars, forceVariableApplier));
// 2) Constant force on 1 axis with noticeable attack
// 2) Constant force on 1 axis with noticeable attack
// with 20s-period triangle oscillations in [-10K, +10K].
// Tested devices :
// - Logitech G25 Racing wheel : WinXPSP2DX9=OK, Linux=OK.
// - Logitech Rumble pad 2 : WinXPSP2DX9=OK (including attack, but only light motor involved),
// - Logitech Rumble pad 2 : WinXPSP2DX9=OK (including attack, but only light motor involved),
// Linux2.6.22.9=Not supported.
pEffect = new Effect(Effect::ConstantForce, Effect::Constant);
pEffect->direction = Effect::North;
......@@ -572,10 +572,10 @@ class EffectManager
pConstForce->envelope.fadeLevel = (unsigned short)pConstForce->level; // Idem
mapVars.clear();
mapVars["Force"] =
mapVars["Force"] =
new TriangleVariable(0.0, // F0
4*10000/_nUpdateFreq / 20.0, // dF for a 20s-period triangle
-10000.0, // Fmin
-10000.0, // Fmin
10000.0); // Fmax
mapVars["AttackFactor"] = new Constant(0.1);
......@@ -609,10 +609,10 @@ class EffectManager
pPeriodForce->envelope.fadeLevel = (unsigned short)pPeriodForce->magnitude;
mapVars.clear();
mapVars["Period"] =
mapVars["Period"] =
new TriangleVariable(1*1000.0, // P0
4*(400-10)*1000.0/_nUpdateFreq / 40.0, // dP for a 40s-period triangle
10*1000.0, // Pmin
10*1000.0, // Pmin
400*1000.0); // Pmax
_vecEffects.push_back
(new VariableEffect
......@@ -680,14 +680,14 @@ class EffectManager
// Nothing to do if no joystick currently selected
if (!_pJoystickMgr->getCurrentFFDevice())
{
cout << "\nNo Joystick selected.\n";
cout << "\nNo Joystick selected.\n";
return;
}
// Nothing to do if joystick cannot play any effect
if (_vecPlayableEffectInd.empty())
{
cout << "\nNo playable effects.\n";
cout << "\nNo playable effects.\n";
return;
}
......@@ -695,7 +695,7 @@ class EffectManager
if (eWhich != eNone && _nCurrEffectInd < 0)
_nCurrEffectInd = 0;
// Otherwise, remove the current one from the device,
// Otherwise, remove the current one from the device,
// and then select the requested one if any.
else if (_nCurrEffectInd >= 0)
{
......@@ -743,10 +743,10 @@ class EffectManager
// oss << _pJoystickMgr->getCurrentFFDevice()->getFFMemoryLoad() << "%";
//else
// oss << "----";
oss << " Effect:" << setw(2);
if (_nCurrEffectInd >= 0)
oss << _vecPlayableEffectInd[_nCurrEffectInd]
oss << _vecPlayableEffectInd[_nCurrEffectInd]
<< " " << _vecEffects[_vecPlayableEffectInd[_nCurrEffectInd]]->toString();
else
oss << "--";
......@@ -820,7 +820,7 @@ class Application
ShowWindow(_hWnd, SW_SHOW);
wnd << (size_t)_hWnd;
wnd << (size_t)_hWnd;
#elif defined OIS_LINUX_PLATFORM
......@@ -880,12 +880,12 @@ class Application
#if defined OIS_LINUX_PLATFORM
// This is just here to show that you still receive x11 events,
// This is just here to show that you still receive x11 events,
// as the lib only needs mouse/key events
void checkX11Events()
{
XEvent event;
//Poll x11 for events
while( XPending(_pXDisp) > 0 )
{
......@@ -950,7 +950,7 @@ class Application
#if defined OIS_WIN32_PLATFORM
MessageBox(0, ex.eText, "Exception Raised!", MB_OK);
#else
cout << endl << "OIS Exception Caught!" << endl
cout << endl << "OIS Exception Caught!" << endl
<< "\t" << ex.eText << "[Line " << ex.eLine << " in " << ex.eFile << "]" << endl;
#endif
}
......@@ -1047,12 +1047,12 @@ bool EventHandler::keyPressed( const KeyEvent &arg )
case KC_ESCAPE:
_pApplication->stop();
break;
// Help.
case KC_H:
_pApplication->printHelp();
break;
// Change current joystick.
case KC_RIGHT:
_pEffectMgr->selectEffect(EffectManager::eNone);
......@@ -1080,12 +1080,12 @@ bool EventHandler::keyPressed( const KeyEvent &arg )
case KC_PGDOWN:
_pJoystickMgr->changeMasterGain(-5.0); // Percent
break;
// Toggle auto-center mode.
case KC_SPACE:
_pJoystickMgr->changeAutoCenter();
break;
default:
cout << "Non mapped key: " << arg.key << endl;
}
......@@ -1118,14 +1118,14 @@ bool EventHandler::povMoved( const JoyStickEvent &arg, int pov )
int main(int argc, const char* argv[])
{
cout << endl
cout << endl
<< "This is a simple command line Force Feedback testing demo ..." << endl
<< "All connected joystick devices will be created and if FF Support is found," << endl
<< "you'll be able to play some predefined variable effects on them." << endl << endl
<< "Note: 1 effect can be played on 1 joystick at a time for the moment." << endl << endl;
Application app(argc, argv);
int status = app.initialize();
if (!status)
......@@ -1134,7 +1134,7 @@ int main(int argc, const char* argv[])
status = app.run();
}
cout << endl << endl << "Exiting ..." << endl << endl;
#if defined OIS_WIN32_PLATFORM && _DEBUG
......
......@@ -141,7 +141,7 @@ public:
{
std::cout.precision(2);
std::cout.flags(std::ios::fixed | std::ios::right);
std::cout << std::endl << arg.device->vendor() << ". Orientation # " << index
std::cout << std::endl << arg.device->vendor() << ". Orientation # " << index
<< " X Value: " << arg.state.mVectors[index].x
<< " Y Value: " << arg.state.mVectors[index].y
<< " Z Value: " << arg.state.mVectors[index].z;
......@@ -291,34 +291,34 @@ void doStartup()
windowRect.top = 0;
windowRect.right = 300;
windowRect.bottom = 300;
// set the default attributes for the window
WindowAttributes windowAttrs = kWindowStandardDocumentAttributes
| kWindowStandardHandlerAttribute
| kWindowStandardHandlerAttribute
| kWindowInWindowMenuAttribute
| kWindowHideOnFullScreenAttribute;
// Create the window
CreateNewWindow(kDocumentWindowClass, windowAttrs, &windowRect, &mWin);
// Color the window background black
SetThemeWindowBackground (mWin, kThemeBrushBlack, true);
// Set the title of our window
CFStringRef titleRef = CFStringCreateWithCString( kCFAllocatorDefault, "OIS Input", kCFStringEncodingASCII );
SetWindowTitleWithCFString( mWin, titleRef );
// Center our window on the screen
RepositionWindow( mWin, NULL, kWindowCenterOnMainScreen );
// Install the event handler for the window
InstallStandardEventHandler(GetWindowEventTarget(mWin));
// This will give our window focus, and not lock it to the terminal
ProcessSerialNumber psn = { 0, kCurrentProcess };
TransformProcessType( &psn, kProcessTransformToForegroundApplication );
SetFrontProcess(&psn);
// Display and select our window
ShowWindow(mWin);
SelectWindow(mWin);
......@@ -454,11 +454,11 @@ void checkX11Events()
#if defined OIS_APPLE_PLATFORM
void checkMacEvents()
{
{
//TODO - Check for window resize events, and then adjust the members of mousestate
EventRef event = NULL;
EventTargetRef targetWindow = GetEventDispatcherTarget();
if( ReceiveNextEvent( 0, NULL, kEventDurationNoWait, true, &event ) == noErr )
{
SendEventToEventTarget(event, targetWindow);
......
......@@ -6,16 +6,16 @@ Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial
Permission is granted to anyone to use this software for any purpose, including commercial
applications, and to alter it and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and must not be
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
......
......@@ -6,16 +6,16 @@ Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial
Permission is granted to anyone to use this software for any purpose, including commercial
applications, and to alter it and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and must not be
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
......@@ -25,11 +25,11 @@ restrictions:
//----------------------------------------------------------------------------//
//* This file contains defines for building certain parts of this Lib
//* This file is not meant for External inclusion. However, you can edit this
//* This file is not meant for External inclusion. However, you can edit this
//* file before a build to effect what features are used internally
//----------------------------------------------------------------------------//
/**
/**
@remarks
These lines have no bearing on internal build of OIS. This is here for
external build settings. Meaning, changing this does not require a
......
......@@ -6,16 +6,16 @@ Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial
Permission is granted to anyone to use this software for any purpose, including commercial
applications, and to alter it and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and must not be
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
......
......@@ -6,16 +6,16 @@ Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial
Permission is granted to anyone to use this software for any purpose, including commercial
applications, and to alter it and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and must not be
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
......
......@@ -6,16 +6,16 @@ Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial
Permission is granted to anyone to use this software for any purpose, including commercial
applications, and to alter it and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and must not be
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
......@@ -49,7 +49,7 @@ namespace OIS
being the highest possible force level (means no scaling).
*/
virtual void setMasterGain( float level ) = 0;
/**
@remarks
If using Force Feedback effects, this should be turned off
......@@ -90,7 +90,7 @@ namespace OIS
/**
@remarks
Get the current load (%, in [0, 100] of the FF device memory
Get the current load (%, in [0, 100] of the FF device memory
*/
virtual unsigned short getFFMemoryLoad() = 0;
......
......@@ -6,16 +6,16 @@ Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial
Permission is granted to anyone to use this software for any purpose, including commercial
applications, and to alter it and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
1. The origin of this software must not be misrepresented; you must not claim that
you wrote the original software. If you use this software in a product,
an acknowledgment in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and must not be
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
......@@ -56,7 +56,7 @@ namespace OIS
/**
@remarks
Creates appropriate input system dependent on platform.
Creates appropriate input system dependent on platform.
@param winHandle
Contains OS specific window handle (such as HWND or X11 Window)
@returns
......@@ -66,7 +66,7 @@ namespace OIS
/**
@remarks
Creates appropriate input system dependent on platform.
Creates appropriate input system dependent on platform.
@param paramList
ParamList contains OS specific info (such as HWND and HINSTANCE for window apps),
and access mode.
......@@ -188,7 +188,7 @@ namespace OIS
//! OIS Version name
const std::string m_VersionName;
//! FactoryCreator list
//! FactoryCreator list
FactoryList mFactories;
//! Factory created objects - useful so we can find creator to send destruction request to
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment