Revision: 2208
Author: mike.popoloski
Date: Sat Sep 15 11:51:06 2012
Log: Added an exception to Controller when created with UserIndex.Any,
to make it clear that it is not allowed. Resolves issue 885.
http://code.google.com/p/slimdx/source/detail?r=2208
Modified:
/trunk/build/ReleaseNotes.txt
/trunk/source/xinput/Controller.cpp
=======================================
--- /trunk/build/ReleaseNotes.txt Sat Sep 15 11:39:05 2012
+++ /trunk/build/ReleaseNotes.txt Sat Sep 15 11:51:06 2012
@@ -3,6 +3,7 @@
Math
* Added float conversion operator to Rational.
+ * Fixed a bug in Matrix3x2.TransformPoint.
D3DCompiler
* Added missing ShaderInputType enum.
@@ -30,3 +31,6 @@
* Added Strikethrough and Underline classes
* Removed extraneous MeasuringMethod enum.
* Fixed a crash bug in BitmapRenderTarget for drawing glyph runs.
+
+XInput
+ * Added an exception to Controller when created with UserIndex.Any, to
make it clear that it is not allowed.
=======================================
--- /trunk/source/xinput/Controller.cpp Sat Jan 28 10:03:11 2012
+++ /trunk/source/xinput/Controller.cpp Sat Sep 15 11:51:06 2012
@@ -37,6 +37,9 @@
Controller::Controller( UserIndex userIndex )
{
m_UserIndex = static_cast<System::UInt32>( userIndex );
+
+ if (m_UserIndex > 3)
+ throw gcnew XInputException("Controllers must specify a valid user
index from 0 to 3.");
}
bool Controller::IsConnected::get()