mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
41
Brutal.Sdl/Manual/SdlGamepadBinding.cs
Normal file
41
Brutal.Sdl/Manual/SdlGamepadBinding.cs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
namespace Brutal.SdlApi;
|
||||
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32)]
|
||||
public struct SdlGamepadBinding
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public SdlGamepadBindingType InputType;
|
||||
|
||||
[FieldOffset(4)]
|
||||
public int InputButton;
|
||||
|
||||
[FieldOffset(4)]
|
||||
public int InputAxis;
|
||||
|
||||
[FieldOffset(8)]
|
||||
public int InputAxisMin;
|
||||
|
||||
[FieldOffset(12)]
|
||||
public int InputAxisMax;
|
||||
|
||||
[FieldOffset(4)]
|
||||
public int InputHat;
|
||||
|
||||
[FieldOffset(8)]
|
||||
public int InputHatMask;
|
||||
|
||||
[FieldOffset(16)]
|
||||
public SdlGamepadBindingType OutputType;
|
||||
|
||||
[FieldOffset(20)]
|
||||
public SdlGamepadButton OutputButton;
|
||||
|
||||
[FieldOffset(20)]
|
||||
public SdlGamepadAxis OutputAxis;
|
||||
|
||||
[FieldOffset(24)]
|
||||
public int OutputAxisMin;
|
||||
|
||||
[FieldOffset(28)]
|
||||
public int OutputAxisMax;
|
||||
}
|
||||
Loading…
Reference in a new issue