< Back

Callback Interaction

2021-3-15

Made with draft 15 of the project, as a way of testing the callback section of the rendering engine.

This section handles mouse and keyboard interaction, mapping those actions against the elements arranged on screen, allowing the actions to relate to those elements. In turn, elements can activate certain callbacks ("onmousedown" or "onkeydown" for example). When an action occurs that coincides with an element who has activated a callback that matches this action; an event is made which the outer system can collect and work with.

Mousing over the rectangles on screen will cause them to glow. The square at the top right of the screen will react to mouse wheel motion, both in the x and y directions. Double-clicking this square will change the "activation mode", which determines how the system deals with elements that are layered on top of one another

Downloads

MacOS 10.11Windows 10