ui/cocoa: Split [-QemuCocoaView handleEventLocked:]
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sat, 24 Feb 2024 12:43:32 +0000 (21:43 +0900)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 5 Mar 2024 11:04:41 +0000 (12:04 +0100)
commitaf4efbccda6729e2986ae225718bd60657d00592
treeea1c0338aa26b8f1f3f3123610ad4743fff6bb00
parentf5af80271aad356233b2bea2369b3b2211fa395d
ui/cocoa: Split [-QemuCocoaView handleEventLocked:]

Currently [-QemuCocoaView handleEventLocked:] parses the passed event,
stores operations to be done to variables, and perform them according
to the variables. This construct will be cluttered with variables and
hard to read when we need more different operations for different
events.

Split the methods so that we can call appropriate methods depending on
events instead of relying on variables.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Tested-by: Rene Engel <ReneEngel80@emailn.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20240224-cocoa-v12-1-e89f70bdda71@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
ui/cocoa.m