2022-03-06 20:07:49 -05:00
|
|
|
#include <media-layer/core.h>
|
2021-07-04 19:02:45 -04:00
|
|
|
|
2022-06-25 17:30:08 -04:00
|
|
|
#include <mods/feature/feature.h>
|
|
|
|
#include <mods/init/init.h>
|
|
|
|
#include "input-internal.h"
|
|
|
|
#include <mods/input/input.h>
|
2021-07-04 19:02:45 -04:00
|
|
|
|
|
|
|
// Init
|
|
|
|
void init_input() {
|
|
|
|
// Miscellaneous
|
|
|
|
_init_misc();
|
|
|
|
|
|
|
|
// Toggleable Options
|
|
|
|
_init_toggle();
|
|
|
|
|
|
|
|
// Item Dropping
|
|
|
|
_init_drop();
|
|
|
|
|
|
|
|
// Enable Bow & Arrow Fix
|
|
|
|
_init_bow();
|
|
|
|
|
|
|
|
// Allow Attacking Mobs
|
|
|
|
_init_attack();
|
2022-03-06 20:07:49 -05:00
|
|
|
|
|
|
|
// Disable Raw Mouse Motion
|
2022-04-09 20:01:16 -04:00
|
|
|
if (feature_has("Disable Raw Mouse Motion (Not Recommended)", server_disabled)) {
|
2022-03-06 20:07:49 -05:00
|
|
|
media_set_raw_mouse_motion_enabled(0);
|
|
|
|
}
|
2024-06-21 01:19:37 -04:00
|
|
|
|
|
|
|
// Extra Key Codes
|
|
|
|
_init_keys();
|
2021-07-04 19:02:45 -04:00
|
|
|
}
|