Revision history for KeyPgEvent


Revision [22001]

Last edited on 2017-11-21 01:11:03 by JeffMarshall [fix page link name case]
Additions:
- ##[[KeyPgScreenevent|ScreenEvent]]##
Deletions:
- ##[[KeyPgScreenEvent|ScreenEvent]]##


Revision [20227]

Edited on 2016-02-10 15:59:58 by DkLwikki [Update link format]
Additions:
Pre-defined structure (UDT) from fbgfx.bi used by [[KeyPgScreenevent|Screenevent]] to return event data
[[KeyPgDim|dim]] //variable// [[KeyPgAs|as]] **Event**
- In //[[CompilerDialects|lang fb]]//, the structure and constants are stored in the ##FB## ##[[KeyPgNamespace|Namespace]]##. This is not the case in other dialects.
- ##[[KeyPgScreenEvent|ScreenEvent]]##
Deletions:
Pre-defined structure (UDT) from fbgfx.bi used by [[KeyPgScreenevent Screenevent]] to return event data
[[KeyPgDim dim]] //variable// [[KeyPgAs as]] **Event**
- In //[[CompilerDialects lang fb]]//, the structure and constants are stored in the ##FB## ##[[KeyPgNamespace Namespace]]##. This is not the case in other dialects.
- ##[[KeyPgScreenEvent ScreenEvent]]##


Revision [17491]

Edited on 2015-04-01 11:29:49 by DkLwikki [integer => long]
Additions:
Type As Long
scancode As Long
ascii As Long
x As Long
y As Long
dx As Long
dy As Long
button As Long
z As Long
w As Long
Deletions:
Type As Integer
scancode As Integer
ascii As Integer
x As Integer
y As Integer
dx As Integer
dy As Integer
button As Integer
z As Integer
w As Integer


Revision [17342]

Edited on 2014-10-15 14:02:33 by DkLwikki [EVENT (message data from ScreenEvent)]
Additions:
{{fbdoc item="title" value="EVENT (message data from ScreenEvent)"}}----
Deletions:
{{fbdoc item="title" value="EVENT"}}----


Revision [17333]

Edited on 2014-10-14 11:30:24 by DkLwikki [Formatting]
Additions:
Pre-defined structure (UDT) from fbgfx.bi used by [[KeyPgScreenevent Screenevent]] to return event data
#include once "fbgfx.bi"
using fb
Here we report the ##EVENT## structure for clarity:


The ##Type## field will contain the event type ID, while the remaining 4 integers will hold sensitive data to the event type.


- ##EVENT_KEY_PRESS## (##1##) A key was pressed on the keyboard. The ##.scancode## field contains the platform independent scancode value for the key; if the key has an ascii representation, it is held into the ##.ascii## field, which otherwise has a value of 0.
- ##EVENT_KEY_RELEASE## (##2##) A key was released on the keyboard. The ##.scancode## and ##.ascii## fields have the same meaning as with the ##EVENT_KEY_PRESS## event.
- ##EVENT_KEY_REPEAT## (##3##) A key is being held down repeatedly. The ##.scancode## and ##.ascii## fields have the same meaning as with the ##EVENT_KEY_PRESS## event.
- ##EVENT_MOUSE_MOVE## (##4##) The mouse was moved while it was on the program window. The ##.x## and ##.y## fields contain the new mouse position relative to the upper-left corner of the screen, while the ##.dx## and ##.dy## fields contain the motion deltas.
- ##EVENT_MOUSE_BUTTON_PRESS## (##5##) One of the mouse buttons was pressed. The ##.button## field has one bit set identifying the button that was pressed; bit 0 identifies the left mouse button, bit 1 the right mouse button and bit 2 the middle mouse button.
- ##EVENT_MOUSE_BUTTON_RELEASE## (##6##) One of the mouse buttons was released. The ##.button## field has the same meaning as with the ##EVENT_MOUSE_BUTTON_PRESS## event.
- ##EVENT_MOUSE_DOUBLE_CLICK## (##7##) One of the mouse buttons was double clicked. The ##.button## field has the same meaning as with the ##EVENT_MOUSE_BUTTON_PRESS## event.
- ##EVENT_MOUSE_WHEEL## (##8##) The mouse wheel was used; the new wheel position is returned into the ##.z## field.
- ##EVENT_MOUSE_ENTER## (##9##) The mouse was moved into the program window.
- ##EVENT_MOUSE_EXIT## (##10##) The mouse was moved out of the program window.
- ##EVENT_WINDOW_GOT_FOCUS## (##11##) The program window has got focus.
- ##EVENT_WINDOW_LOST_FOCUS## (##12##) The program window has lost focus.
- ##EVENT_WINDOW_CLOSE## (##13##) The user attempted to close the program window.
- ##EVENT_MOUSE_HWHEEL## (##14##) The horizontal mouse wheel was used; the new horizontal wheel position is returned into the ##.w## field.

The ##fbgfx.bi## header file contains a definition of the ##EVENT## user data type, so it is not necessary to declare it manually.
- In //[[CompilerDialects lang fb]]//, the structure and constants are stored in the ##FB## ##[[KeyPgNamespace Namespace]]##. This is not the case in other dialects.
Deletions:
Pre-defined structure(UDT) used by [[KeyPgScreenevent Screenevent]] to return event data
Here we report the ##EVENT## structure for clarity:

The ##Type Field## will contain the event type ID, while the remaining 4 integers will hold sensitive data to the event type.
- ##EVENT_KEY_PRESS## (##1##) A key was pressed on the keyboard. The ##.scancode## field contains the platform independent scancode value for the key; if the key has an ascii representation, it is held into the ##.ascii## field, which otherwise has a value of 0.
- ##EVENT_KEY_RELEASE## (##2##) A key was released on the keyboard. The ##.scancode## and ##.ascii## fields have the same meaning as with the ##EVENT_KEY_PRESS## event.
- ##EVENT_KEY_REPEAT## (##3##) A key is being held down repeatedly. The ##.scancode## and ##.ascii## fields have the same meaning as with the ##EVENT_KEY_PRESS## event.
- ##EVENT_MOUSE_MOVE## (##4##) The mouse was moved while it was on the program window. The ##.x## and ##.y## fields contain the new mouse position relative to the upper-left corner of the screen, while the ##.dx## and ##.dy## fields contain the motion deltas.
- ##EVENT_MOUSE_BUTTON_PRESS## (##5##) One of the mouse buttons was pressed. The ##.button## field has one bit set identifying the button that was pressed; bit 0 identifies the left mouse button, bit 1 the right mouse button and bit 2 the middle mouse button.
- ##EVENT_MOUSE_BUTTON_RELEASE## (##6##) One of the mouse buttons was released. The ##.button## field has the same meaning as with the ##EVENT_MOUSE_BUTTON_PRESS## event.
- ##EVENT_MOUSE_DOUBLE_CLICK## (##7##) One of the mouse buttons was double clicked. The ##.button## field has the same meaning as with the ##EVENT_MOUSE_BUTTON_PRESS## event.
- ##EVENT_MOUSE_WHEEL## (##8##) The mouse wheel was used; the new wheel position is returned into the ##.z## field.
- ##EVENT_MOUSE_ENTER## (##9##) The mouse was moved into the program window.
- ##EVENT_MOUSE_EXIT## (##10##) The mouse was moved out of the program window.
- ##EVENT_WINDOW_GOT_FOCUS## (##11##) The program window has got focus.
- ##EVENT_WINDOW_LOST_FOCUS## (##12##) The program window has lost focus.
- ##EVENT_WINDOW_CLOSE## (##13##) The user attempted to close the program window.
- ##EVENT_MOUSE_HWHEEL## (##14##) The horizontal mouse wheel was used; the new horizontal wheel position is returned into the ##.w## field.
The ##fbgfx.bi## header file contains a definition of the ##EVENT## user data type.
- In //[[CompilerDialects lang fb]]//, the structure and constants are stored in the ##FB## ##[[KeyPgNamespace Namespace]]##.


Revision [15226]

Edited on 2011-09-26 15:07:37 by DkLwikki [EVENT_MOUSE_HWHEEL should now work with X11 too]

No Differences

Revision [15225]

Edited on 2011-09-26 15:07:03 by DkLwikki [EVENT_MOUSE_HWHEEL should now work with X11 too]
Additions:
- ##EVENT_MOUSE_HWHEEL## (##14##) The horizontal mouse wheel was used; the new horizontal wheel position is returned into the ##.w## field.
Deletions:
- ##EVENT_MOUSE_HWHEEL## (##14##) The horizontal mouse wheel was used; the new horizontal wheel position is returned into the ##.w## field. (Note: currently implemented on Windows only)


Revision [15001]

Edited on 2010-11-20 11:24:12 by DkLwikki [EVENT_MOUSE_HWHEEL was not documented]
Additions:
w As Integer
- ##EVENT_MOUSE_HWHEEL## (##14##) The horizontal mouse wheel was used; the new horizontal wheel position is returned into the ##.w## field. (Note: currently implemented on Windows only)


Revision [14570]

Edited on 2010-01-24 17:14:49 by AntoniGual [EVENT_MOUSE_HWHEEL was not documented]
Additions:
- New to ""FreeBASIC""
Deletions:
- ##Event## did not exist in QB


Revision [14565]

The oldest known version of this page was created on 2010-01-24 17:02:38 by AntoniGual [EVENT_MOUSE_HWHEEL was not documented]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode