/// <param name="buffer">a buffer, which must be large enough to accommodate the number of samples.</param>
/// <param name="samples">the number of samples to be retrieved.</param>
[CLSCompliant(false)]
- public static void CaptureSamples<T>(IntPtr device, T[, ,] buffer, int samples)
+ public static void CaptureSamples<T>(IntPtr device, T[,,] buffer, int samples)
where T : struct
{
CaptureSamples(device, ref buffer[0, 0, 0], samples);
/// <param name="type">An instance of the type to check.</param>
/// <returns>True if T is blittable; false otherwise.</returns>
[CLSCompliant(false)]
- public static bool Check<T>(T[, ,] type)
+ public static bool Check<T>(T[,,] type)
{
return BlittableValueType<T>.Check();
}
/// <returns>An integer, specifying the size of the type in bytes.</returns>
/// <exception cref="System.ArgumentException">Occurs when type is not blittable.</exception>
[CLSCompliant(false)]
- public static int StrideOf<T>(T[, ,] type)
+ public static int StrideOf<T>(T[,,] type)
{
if (!Check(type))
{
}
else
{
- float f1 = (float)x;
+ float f1 = (float)x;
float f2 = (float)y;
p.X.Value = *(IntPtr *)&f1;
p.Y.Value = *(IntPtr *)&f2;
Key.Unknown, /* Volume Up */
Key.Unknown, /* Volume Down */
Key.CapsLock, /* Locking Caps Lock */
- Key.NumLock , /* Locking Num Lock */
+ Key.NumLock, /* Locking Num Lock */
Key.ScrollLock, /* Locking Scroll Lock */
Key.KeypadDecimal, /* Keypad Comma */
Key.Unknown, /* Keypad Equal Sign for AS/400 */
[DllImport(lib, EntryPoint = "CGDisplayBounds")]
private unsafe static extern void DisplayBounds(out NSRect rect, IntPtr display);
- [DllImport(lib,EntryPoint="CGDisplayPixelsWide")]
+ [DllImport(lib, EntryPoint="CGDisplayPixelsWide")]
internal static extern int DisplayPixelsWide(IntPtr display);
- [DllImport(lib,EntryPoint="CGDisplayPixelsHigh")]
+ [DllImport(lib, EntryPoint="CGDisplayPixelsHigh")]
internal static extern int DisplayPixelsHigh(IntPtr display);
- [DllImport(lib,EntryPoint="CGDisplayCurrentMode")]
+ [DllImport(lib, EntryPoint="CGDisplayCurrentMode")]
internal static extern IntPtr DisplayCurrentMode(IntPtr display);
- [DllImport(lib,EntryPoint="CGDisplayCapture")]
+ [DllImport(lib, EntryPoint="CGDisplayCapture")]
internal static extern CGDisplayErr DisplayCapture(IntPtr display);
- [DllImport(lib,EntryPoint="CGCaptureAllDisplays")]
+ [DllImport(lib, EntryPoint="CGCaptureAllDisplays")]
internal static extern CGDisplayErr CaptureAllDisplays();
- [DllImport(lib,EntryPoint="CGShieldingWindowLevel")]
+ [DllImport(lib, EntryPoint="CGShieldingWindowLevel")]
internal static extern uint ShieldingWindowLevel();
- [DllImport(lib,EntryPoint="CGDisplayRelease")]
+ [DllImport(lib, EntryPoint="CGDisplayRelease")]
internal static extern CGDisplayErr DisplayRelease(IntPtr display);
- [DllImport(lib,EntryPoint="CGReleaseAllDisplays")]
+ [DllImport(lib, EntryPoint="CGReleaseAllDisplays")]
internal static extern CGDisplayErr DisplayReleaseAll();
[DllImport(lib, EntryPoint = "CGDisplayAvailableModes")]
public GraphicsMode SelectGraphicsMode(ColorFormat color, int depth, int stencil, int samples,
ColorFormat accum, int buffers, bool stereo)
{
- GraphicsMode mode = new GraphicsMode(color, depth, stencil, samples,accum, buffers, stereo);
+ GraphicsMode mode = new GraphicsMode(color, depth, stencil, samples, accum, buffers, stereo);
GraphicsMode created_mode = ChoosePixelFormatARB(Device, mode);
// If ChoosePixelFormatARB failed, iterate through all acceleration types in turn (ICD, MCD, None)
internal readonly int XInputIndex;
private readonly Dictionary<int, int> axes =
- new Dictionary<int,int>();
+ new Dictionary<int, int>();
private readonly Dictionary<int, int> buttons =
new Dictionary<int, int>();
XF86MenuKB = 0x1008ff65,
XF86Calculator = 0x1008ff1d,
XF86Sleep = 0x1008ff2f,
- XF86WakeUp = 0x1008ff2b ,
+ XF86WakeUp = 0x1008ff2b,
XF86Explorer = 0x1008ff5d,
XF86Send = 0x1008ff7b,
XF86Xfer = 0x1008ff8a,
XF86Favorites = 0x1008ff30,
XF86MyComputer = 0x1008ff33,
XF86Back = 0x1008ff26,
- XF86Forward = 0x1008ff27 ,
+ XF86Forward = 0x1008ff27,
XF86Eject = 0x1008ff2c,
XF86AudioPlay = 0x1008ff14,
XF86AudioStop = 0x1008ff15,