[Cuis-dev] Spacewar game broken

Luciano Notarfrancesco luchiano at gmail.com
Thu Jun 4 01:32:06 PDT 2026


Ok, handlesKeyboard is unnecesary, you can delete it. Also in mouseEnter:
and mouseLeave: remove the calls to newKeyboardFocus: and
releaseKeyboardFocus:. Then it seems to work fine.

On Thu, Jun 4, 2026 at 15:12 Luciano Notarfrancesco <luchiano at gmail.com>
wrote:

> I’ll look at the problems with Spacewar!, should be easy to update to the
> latest image.
>
> On Thu, Jun 4, 2026 at 03:16 Hilaire Fernandes via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> Hi,
>>
>> The spacewar! game from the book is broken due to changes in keyboard
>> handling, and maybe mouse.
>>
>>  Observed issues:
>>
>>    - handlesKeyboard not used anymore. How to proceed?
>>    - mouseEnter/mouseLeave does not work, while handlesMouseOver: answer
>>    true, strange
>>    - the game does not get the keyboard focus.
>>
>> A bit confused.
>>
>> Hilaire
>>
>> -- http://mamot.fr/@drgeo
>>
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260604/60f5c0ab/attachment-0001.htm>


More information about the Cuis-dev mailing list