Renamed Window::GetEvent to PollEvent
This commit is contained in:
parent
bacb698f1a
commit
df6874273a
20 changed files with 32 additions and 32 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -480,9 +480,9 @@ namespace SFML
|
|||
/// <param name="eventToFill">Variable to fill with the raw pointer to the event structure</param>
|
||||
/// <returns>True if there was an event, false otherwise</returns>
|
||||
////////////////////////////////////////////////////////////
|
||||
protected override bool GetEvent(out Event eventToFill)
|
||||
protected override bool PollEvent(out Event eventToFill)
|
||||
{
|
||||
return sfRenderWindow_GetEvent(This, out eventToFill);
|
||||
return sfRenderWindow_PollEvent(This, out eventToFill);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -545,7 +545,7 @@ namespace SFML
|
|||
static extern void sfRenderWindow_Close(IntPtr This);
|
||||
|
||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern bool sfRenderWindow_GetEvent(IntPtr This, out Event Evt);
|
||||
static extern bool sfRenderWindow_PollEvent(IntPtr This, out Event Evt);
|
||||
|
||||
[DllImport("csfml-graphics-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern bool sfRenderWindow_WaitEvent(IntPtr This, out Event Evt);
|
||||
|
|
|
@ -383,7 +383,7 @@ namespace SFML
|
|||
public void DispatchEvents()
|
||||
{
|
||||
Event e;
|
||||
while (GetEvent(out e))
|
||||
while (PollEvent(out e))
|
||||
CallEventHandler(e);
|
||||
}
|
||||
|
||||
|
@ -421,9 +421,9 @@ namespace SFML
|
|||
/// <param name="eventToFill">Variable to fill with the raw pointer to the event structure</param>
|
||||
/// <returns>True if there was an event, false otherwise</returns>
|
||||
////////////////////////////////////////////////////////////
|
||||
protected virtual bool GetEvent(out Event eventToFill)
|
||||
protected virtual bool PollEvent(out Event eventToFill)
|
||||
{
|
||||
return sfWindow_GetEvent(This, out eventToFill);
|
||||
return sfWindow_PollEvent(This, out eventToFill);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -611,7 +611,7 @@ namespace SFML
|
|||
static extern void sfWindow_Close(IntPtr This);
|
||||
|
||||
[DllImport("csfml-window-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern bool sfWindow_GetEvent(IntPtr This, out Event Evt);
|
||||
static extern bool sfWindow_PollEvent(IntPtr This, out Event Evt);
|
||||
|
||||
[DllImport("csfml-window-2", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
|
||||
static extern bool sfWindow_WaitEvent(IntPtr This, out Event Evt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue