mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Added StructLayout(LayoutKind.Sequential) to the struct contained in SFML.Event, in SFML.Net
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1523 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
52f8da466c
commit
1d4bc3d200
@ -228,6 +228,7 @@ namespace SFML
|
|||||||
/// Keyboard event parameters
|
/// Keyboard event parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct KeyEvent
|
public struct KeyEvent
|
||||||
{
|
{
|
||||||
/// <summary>Code of the key (see KeyCode enum)</summary>
|
/// <summary>Code of the key (see KeyCode enum)</summary>
|
||||||
@ -248,6 +249,7 @@ namespace SFML
|
|||||||
/// Text event parameters
|
/// Text event parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct TextEvent
|
public struct TextEvent
|
||||||
{
|
{
|
||||||
/// <summary>UTF-32 value of the character</summary>
|
/// <summary>UTF-32 value of the character</summary>
|
||||||
@ -259,6 +261,7 @@ namespace SFML
|
|||||||
/// Mouse move event parameters
|
/// Mouse move event parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct MouseMoveEvent
|
public struct MouseMoveEvent
|
||||||
{
|
{
|
||||||
/// <summary>X coordinate of the mouse cursor</summary>
|
/// <summary>X coordinate of the mouse cursor</summary>
|
||||||
@ -273,6 +276,7 @@ namespace SFML
|
|||||||
/// Mouse buttons event parameters
|
/// Mouse buttons event parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct MouseButtonEvent
|
public struct MouseButtonEvent
|
||||||
{
|
{
|
||||||
/// <summary>Code of the button (see MouseButton enum)</summary>
|
/// <summary>Code of the button (see MouseButton enum)</summary>
|
||||||
@ -290,6 +294,7 @@ namespace SFML
|
|||||||
/// Mouse wheel event parameters
|
/// Mouse wheel event parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct MouseWheelEvent
|
public struct MouseWheelEvent
|
||||||
{
|
{
|
||||||
/// <summary>Scroll amount</summary>
|
/// <summary>Scroll amount</summary>
|
||||||
@ -307,6 +312,7 @@ namespace SFML
|
|||||||
/// Joystick axis move event parameters
|
/// Joystick axis move event parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct JoyMoveEvent
|
public struct JoyMoveEvent
|
||||||
{
|
{
|
||||||
/// <summary>Index of the joystick which triggered the event</summary>
|
/// <summary>Index of the joystick which triggered the event</summary>
|
||||||
@ -324,6 +330,7 @@ namespace SFML
|
|||||||
/// Joystick buttons event parameters
|
/// Joystick buttons event parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct JoyButtonEvent
|
public struct JoyButtonEvent
|
||||||
{
|
{
|
||||||
/// <summary>Index of the joystick which triggered the event</summary>
|
/// <summary>Index of the joystick which triggered the event</summary>
|
||||||
@ -338,6 +345,7 @@ namespace SFML
|
|||||||
/// Size event parameters
|
/// Size event parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct SizeEvent
|
public struct SizeEvent
|
||||||
{
|
{
|
||||||
/// <summary>New width of the window</summary>
|
/// <summary>New width of the window</summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user