Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LogitechSingleLightDevice.cs
Go to the documentation of this file.
1
using
Microsoft.Xna.Framework
;
2
3
namespace
ReLogic.Peripherals.RGB.Logitech
;
4
5
internal
class
LogitechSingleLightDevice
:
RgbDevice
6
{
7
public
LogitechSingleLightDevice
(
DeviceColorProfile
colorProfile)
8
: base(
RgbDeviceVendor
.Logitech,
RgbDeviceType
.Generic,
Fragment
.FromGrid(new
Rectangle
(30, 0, 1, 1)), colorProfile)
9
{
10
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
11
base.PreferredLevelOfDetail =
EffectDetailLevel
.Low;
12
}
13
14
public
override
void
Present
()
15
{
16
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
17
//IL_000f: Unknown result type (might be due to invalid IL or missing references)
18
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
19
//IL_001d: Unknown result type (might be due to invalid IL or missing references)
20
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
21
if
(
NativeMethods
.
LogiLedSetTargetDevice
(2))
22
{
23
Vector4
processedLedColor =
GetProcessedLedColor
(0);
24
NativeMethods
.
LogiLedSetLighting
((
int
)(processedLedColor.
X
* 100f), (
int
)(processedLedColor.
Y
* 100f), (
int
)(processedLedColor.
Z
* 100f));
25
}
26
}
27
}
ReLogic.Peripherals.RGB.DeviceColorProfile
Definition
DeviceColorProfile.cs:7
ReLogic.Peripherals.RGB.Fragment
Definition
Fragment.cs:7
ReLogic.Peripherals.RGB.Logitech.LogitechSingleLightDevice.LogitechSingleLightDevice
LogitechSingleLightDevice(DeviceColorProfile colorProfile)
Definition
LogitechSingleLightDevice.cs:7
ReLogic.Peripherals.RGB.Logitech.LogitechSingleLightDevice.Present
override void Present()
Definition
LogitechSingleLightDevice.cs:14
ReLogic.Peripherals.RGB.Logitech.LogitechSingleLightDevice
Definition
LogitechSingleLightDevice.cs:6
ReLogic.Peripherals.RGB.Logitech.NativeMethods.LogiLedSetTargetDevice
static bool LogiLedSetTargetDevice(int targetDevice)
ReLogic.Peripherals.RGB.Logitech.NativeMethods.LogiLedSetLighting
static bool LogiLedSetLighting(int redPercentage, int greenPercentage, int bluePercentage)
ReLogic.Peripherals.RGB.Logitech.NativeMethods
Definition
NativeMethods.cs:6
ReLogic.Peripherals.RGB.RgbDevice.GetProcessedLedColor
Vector4 GetProcessedLedColor(int index)
Definition
RgbDevice.cs:37
ReLogic.Peripherals.RGB.RgbDevice
Definition
RgbDevice.cs:7
Microsoft.Xna.Framework
Definition
AlphaTestEffect.cs:1
ReLogic.Peripherals.RGB.Logitech
Definition
KeyName.cs:1
ReLogic.Peripherals.RGB.RgbDeviceVendor
RgbDeviceVendor
Definition
RgbDeviceVendor.cs:4
ReLogic.Peripherals.RGB.EffectDetailLevel
EffectDetailLevel
Definition
EffectDetailLevel.cs:4
ReLogic.Peripherals.RGB.RgbDeviceType
RgbDeviceType
Definition
RgbDeviceType.cs:4
Microsoft.Xna.Framework.Rectangle
Definition
Rectangle.cs:12
Microsoft.Xna.Framework.Vector4.Z
float Z
Definition
Vector4.cs:20
Microsoft.Xna.Framework.Vector4.Y
float Y
Definition
Vector4.cs:17
Microsoft.Xna.Framework.Vector4.X
float X
Definition
Vector4.cs:14
Microsoft.Xna.Framework.Vector4
Definition
Vector4.cs:12
source
ReLogic
ReLogic.Peripherals.RGB.Logitech
LogitechSingleLightDevice.cs
Generated by
1.10.0