Skip to content

Commit

Permalink
fix Morph extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrebs5 committed Sep 13, 2024
1 parent 9d23bbf commit 654c400
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*GameMecha-KeyHandling
gmDeregisterBlockForKey: aCharacter
self eventHandler class = GMKeyHandler
ifTrue: [self extension eventHandler gmDeregisterBlockForKey: aCharacter]
ifFalse: [self error: 'Morph has no GMKeyHandler'].


Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*GameMecha-KeyHandling
gmDeregisterMethodInvocationForKey: aCharacter
self eventHandler class = GMKeyHandler
ifTrue: [self extension eventHandler gmDeregisterMethodInvocationForKey: aCharacter]
ifFalse: [self error: 'Morph has no GMKeyHandler'].


Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*GameMecha-KeyHandling
gmEvaluateRegisteredEvents
self eventHandler class = GMKeyHandler
ifTrue: [self extension eventHandler gmEvaluateRegisteredEvents]
ifFalse: [self error: 'Morph has no GMKeyHandler'].

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*GameMecha-KeyHandling
gmIsKeyPressed: aCharacter
self eventHandler class = GMKeyHandler
ifTrue: [^ self eventHandler gmIsKeyPressed: aCharacter]
ifFalse: [self error: 'Morph has no GMKeyHandler'].

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*GameMecha-KeyHandling
gmRegisterBlock: aBlock forKey: aCharacter
self eventHandler class = GMKeyHandler
ifTrue: [self extension eventHandler gmRegisterBlock: aBlock forKey: aCharacter]
ifFalse: [self error: 'Morph has no GMKeyHandler'].


Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*GameMecha-KeyHandling
gmRegisterMethodInvocation: aSelector on: aReceivingObject forKey: aCharacter
self eventHandler class = GMKeyHandler
ifTrue: [self extension eventHandler gmRegisterMethodInvocation: aSelector
on: aReceivingObject forKey: aCharacter]
ifFalse: [self error: 'Morph has no GMKeyHandler'].


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*GameMecha-KeyHandling
gmRegisterToKeyHandler
self assureExtension.
self extension eventHandler: (GMKeyHandler new).
ActiveHand newKeyboardFocus: self.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"class" : {
},
"instance" : {
"gmDeregisterBlockForKey:" : "NK 7/25/2018 17:02",
"gmDeregisterMethodInvocationForKey:" : "TP 7/25/2018 16:03",
"gmEvaluateRegisteredEvents" : "TP 7/25/2018 16:04",
"gmIsKeyPressed:" : "TP 7/25/2018 16:04",
"gmRegisterBlock:forKey:" : "TP 7/25/2018 16:04",
"gmRegisterMethodInvocation:on:forKey:" : "TP 7/25/2018 16:06",
"gmRegisterToKeyHandler" : "TP 7/10/2018 16:24" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
"name" : "Morph" }

0 comments on commit 654c400

Please sign in to comment.