#include "4coder_default_include.cpp"
CUSTOM_COMMAND_SIG(hello_world_test)
{
print_message(app, "Hello World.\n", sizeof( "Hello World.\n" ) - 1);
}
void
test_keys(
Bind_Helper *context)
{
begin_map(context, default_lister_ui_map);
bind_vanilla_keys(context, lister__write_character);
bind(context, key_esc, MDFR_NONE, lister__quit);
bind(context, '\n', MDFR_NONE, lister__activate);
bind(context, '\t', MDFR_NONE, lister__activate);
bind(context, key_back, MDFR_NONE, lister__backspace_text_field);
bind(context, key_up, MDFR_NONE, lister__move_up);
bind(context, key_page_up, MDFR_NONE, lister__move_up);
bind(context, key_down, MDFR_NONE, lister__move_down);
bind(context, key_page_down, MDFR_NONE, lister__move_down);
bind(context, key_mouse_wheel, MDFR_NONE, lister__wheel_scroll);
bind(context, key_mouse_left, MDFR_NONE, lister__mouse_press);
bind(context, key_mouse_left_release, MDFR_NONE, lister__mouse_release);
bind(context, key_mouse_move, MDFR_NONE, lister__repaint);
bind(context, key_animate, MDFR_NONE, lister__repaint);
end_map(context);
begin_map(context, mapid_global);
bind(context, 'x', MDFR_ALT, command_lister);
bind(context, 'p', MDFR_CTRL, hello_world_test);
end_map(context);
begin_map(context, mapid_file);
end_map(context);
begin_map(context, default_code_map);
inherit_map(context, mapid_file);
end_map(context);
}
#if !defined(NO_BINDING)
extern "C" int32_t
get_bindings(void *data, int32_t size){
Bind_Helper context_ = begin_bind_helper(data, size);
Bind_Helper *context = &context_;
set_all_default_hooks(context);
#if defined(__APPLE__) && defined(__MACH__)
mac_default_keys(context);
#else
test_keys(context);
#endif
int32_t result = end_bind_helper(context);
return(result);
}
#endif //NO_BINDING