hpi-swa-teaching / GameMecha

A library providing implementations for common patterns in Squeak/Smalltalk game development.
MIT License
12 stars 2 forks source link

Profiling Tool for Keyboard Layout #16

Closed tomschw closed 6 years ago

tomschw commented 7 years ago

profilingtoolkeyboard-1 ProfilingToolKeyboard.pdf

ErikBrendel commented 7 years ago

wir hatten uns schon gedanken gemacht:

|keyboard|
keyboard := GMKeyboard new.

keyboard
    registerAction: #walkForward
    toKey: #w
    hint: 'Walk forward'.

keyboard loadCalibrationIfExisting.

keyboard letUserRecalibrate.

(keyboard isActionKeyDown #walkForward)
    ifTrue: [self trolol].