diff --git a/sysdata/programs/horizon/src/main.hb b/sysdata/programs/horizon/src/main.hb index 0f59328..8afd4f6 100644 --- a/sysdata/programs/horizon/src/main.hb +++ b/sysdata/programs/horizon/src/main.hb @@ -65,6 +65,7 @@ main := fn(): int { // key_event := intouch.recieve_key_event() mouse_event := intouch.recieve_mouse_event() if mouse_event != null { + log.info("Mouse event") mouse_x += mouse_event.x_change mouse_y += mouse_event.y_change set_label_text(text_label, "Mouse Moved\0") diff --git a/sysdata/programs/test_abc/README.md b/sysdata/programs/test_abc/README.md new file mode 100644 index 0000000..f569e63 --- /dev/null +++ b/sysdata/programs/test_abc/README.md @@ -0,0 +1 @@ +# test_abc \ No newline at end of file diff --git a/sysdata/programs/test_abc/meta.toml b/sysdata/programs/test_abc/meta.toml new file mode 100644 index 0000000..45bb122 --- /dev/null +++ b/sysdata/programs/test_abc/meta.toml @@ -0,0 +1,11 @@ +[package] +name = "test_abc" +authors = [""] + +[dependants.libraries] + +[dependants.binaries] +hblang.version = "1.0.0" + +[build] +command = "hblang src/main.hb" diff --git a/sysdata/programs/test_abc/src/main.hb b/sysdata/programs/test_abc/src/main.hb new file mode 100644 index 0000000..f00414c --- /dev/null +++ b/sysdata/programs/test_abc/src/main.hb @@ -0,0 +1,19 @@ +stn := @use("../../../libraries/stn/src/lib.hb"); +.{log} := stn + +Structure := struct {} + +returner_fn := fn(): ?Structure { + structure := Structure.() + return structure +} + +main := fn(): int { + ret := returner_fn() + if ret != null { + log.info("not null\0") + return 1 + } + + return 0 +} \ No newline at end of file diff --git a/sysdata/system_config.toml b/sysdata/system_config.toml index b1d8a65..082f361 100644 --- a/sysdata/system_config.toml +++ b/sysdata/system_config.toml @@ -37,8 +37,8 @@ resolution = "1024x768x24" # [boot.limine.ableos.modules.serial_driver_test] # path = "boot:///serial_driver_test.hbf" -[boot.limine.ableos.modules.horizon] -path = "boot:///horizon.hbf" +# [boot.limine.ableos.modules.horizon] +# path = "boot:///horizon.hbf" # [boot.limine.ableos.modules.horizon_testing_program] # path = "boot:///horizon_testing_program.hbf" @@ -58,8 +58,11 @@ path = "boot:///horizon.hbf" # [boot.limine.ableos.modules.pumpkin_print] # path = "boot:///pumpkin_print.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.app_bar] # path = "boot:///app_bar.hbf" + +# [boot.limine.ableos.modules.test_abc] +# path = "boot:///test_abc.hbf"