Skip to content

Commit

Permalink
Merge pull request #764 from johannesnydahl/w04lab
Browse files Browse the repository at this point in the history
fix lab code skeleton in w04
  • Loading branch information
bjornregnell authored Oct 29, 2023
2 parents 8fec7f2 + 2178f54 commit ee456e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compendium/modules/w04-objects-lab.tex
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ \subsection{Obligatoriska uppgifter}
window.awaitEvent(maxWaitMillis)
while window.lastEventType != PixelWindow.Event.KeyPressed do
window.awaitEvent(maxWaitMillis) // skip other events
println(s"KeyPressed: " + window.lastKey)
println(s"KeyPressed: ${window.lastKey}")
window.lastKey
\end{Code}
\noindent Det finns olika sorters händelser som ett \code{PixelWindow} kan reagera på, till exempel tangenttryckningar och musklick.
Expand Down

0 comments on commit ee456e4

Please sign in to comment.