diff --git a/sysdata/programs/render_example/src/examples/intouch.hb b/sysdata/programs/render_example/src/examples/intouch.hb index 7d72ed2..2f9a6d0 100644 --- a/sysdata/programs/render_example/src/examples/intouch.hb +++ b/sysdata/programs/render_example/src/examples/intouch.hb @@ -18,7 +18,7 @@ example := fn(): void { } else if mouse.right { screen.put_filled_circle(@bitcast(mouse_pos), 10, bg_colour) } else if mouse.middle { - pen_colour = stn.random.any(render.Color) + pen_colour = *screen.indexptr(@bitcast(mouse_pos.x), @bitcast(mouse_pos.y)) } } @@ -43,6 +43,8 @@ example := fn(): void { pen_colour = render.MAGENTA } else if kb.key == intouch.keycodes.NUMBER9 { pen_colour = render.GRAY + } else if kb.key == intouch.keycodes.NUMBER0 { + pen_colour = stn.random.any(render.Color) } else { bg_colour = stn.random.any(render.Color) screen.clear(bg_colour) diff --git a/sysdata/programs/render_example/src/main.hb b/sysdata/programs/render_example/src/main.hb index 651f2de..c3e299f 100644 --- a/sysdata/programs/render_example/src/main.hb +++ b/sysdata/programs/render_example/src/main.hb @@ -1 +1 @@ -.{example: main} := @use("./examples/drag-and-drop.hb") \ No newline at end of file +.{example: main} := @use("./examples/intouch.hb") \ No newline at end of file diff --git a/sysdata/system_config.toml b/sysdata/system_config.toml index d8319b4..31c3f63 100644 --- a/sysdata/system_config.toml +++ b/sysdata/system_config.toml @@ -29,8 +29,8 @@ path = "boot:///render_example.hbf" # [boot.limine.ableos.modules.sunset_server] # path = "boot:///sunset_server.hbf" -[boot.limine.ableos.modules.ps2_mouse_driver] -path = "boot:///ps2_mouse_driver.hbf" +# [boot.limine.ableos.modules.ps2_mouse_driver] +# path = "boot:///ps2_mouse_driver.hbf" # [boot.limine.ableos.modules.ps2_keyboard_driver] # path = "boot:///ps2_keyboard_driver.hbf"