Browse Source

Added some new window events.

woollybah 5 years ago
parent
commit
1bfda9d364
2 changed files with 9 additions and 0 deletions
  1. 6 0
      event.mod/event.bmx
  2. 3 0
      event.mod/event.h

+ 6 - 0
event.mod/event.bmx

@@ -190,6 +190,9 @@ Const EVENT_WINDOWSIZE:Int=$4002
 Const EVENT_WINDOWCLOSE:Int=$4003
 Const EVENT_WINDOWCLOSE:Int=$4003
 Const EVENT_WINDOWACTIVATE:Int=$4004
 Const EVENT_WINDOWACTIVATE:Int=$4004
 Const EVENT_WINDOWACCEPT:Int=$4005
 Const EVENT_WINDOWACCEPT:Int=$4005
+Const EVENT_WINDOWMINIMIZE:Int=$4006
+Const EVENT_WINDOWMAXIMIZE:Int=$4007
+Const EVENT_WINDOWRESTORE:Int=$4008
 Const EVENT_MENUMASK:Int=$8000
 Const EVENT_MENUMASK:Int=$8000
 Const EVENT_MENUACTION:Int=$8001
 Const EVENT_MENUACTION:Int=$8001
 Const EVENT_STREAMMASK:Int=$10000
 Const EVENT_STREAMMASK:Int=$10000
@@ -235,6 +238,9 @@ TEvent.RegisterId EVENT_WINDOWSIZE,"WindowSize"
 TEvent.RegisterId EVENT_WINDOWCLOSE,"WindowClose"
 TEvent.RegisterId EVENT_WINDOWCLOSE,"WindowClose"
 TEvent.RegisterId EVENT_WINDOWACTIVATE,"WindowActivate"
 TEvent.RegisterId EVENT_WINDOWACTIVATE,"WindowActivate"
 TEvent.RegisterId EVENT_WINDOWACCEPT,"WindowAccept"
 TEvent.RegisterId EVENT_WINDOWACCEPT,"WindowAccept"
+TEvent.RegisterId EVENT_WINDOWMINIMIZE,"WindowMinimize"
+TEvent.RegisterId EVENT_WINDOWMAXIMIZE,"WindowMaximize"
+TEvent.RegisterId EVENT_WINDOWRESTORE,"WindowRestore"
 TEvent.RegisterId EVENT_MENUACTION,"MenuAction"
 TEvent.RegisterId EVENT_MENUACTION,"MenuAction"
 TEvent.RegisterId EVENT_STREAMEOF,"StreamEof"
 TEvent.RegisterId EVENT_STREAMEOF,"StreamEof"
 TEvent.RegisterId EVENT_STREAMAVAIL,"StreamAvail"
 TEvent.RegisterId EVENT_STREAMAVAIL,"StreamAvail"

+ 3 - 0
event.mod/event.h

@@ -47,6 +47,9 @@ enum{
 	BBEVENT_WINDOWCLOSE=0x4003,
 	BBEVENT_WINDOWCLOSE=0x4003,
 	BBEVENT_WINDOWACTIVATE=0x4004,
 	BBEVENT_WINDOWACTIVATE=0x4004,
 	BBEVENT_WINDOWACCEPT=0x4005,
 	BBEVENT_WINDOWACCEPT=0x4005,
+	BBEVENT_WINDOWMINIMIZE=0x4006,
+	BBEVENT_WINDOWMAXIMIZE=0x4007,
+	BBEVENT_WINDOWRESTORE=0x4008,
 
 
 	BBEVENT_MENUMASK=0x8000,
 	BBEVENT_MENUMASK=0x8000,
 	BBEVENT_MENUACTION=0x8001,
 	BBEVENT_MENUACTION=0x8001,