arcdps::extras::exports

Function get_keybind

Source
pub fn get_keybind(control: Control) -> Keybind
Expand description

Retrieves the Keybind for a given game Control from Unofficial Extras.

Returns an empty/default Key if the key is not set or if the functionality is disabled cause of missing patterns.

ยงExamples

use arcdps::extras::{keybinds::Control, exports::get_keybind};

let keybind = get_keybind(Control::Skills_EliteSkill);
let primary = keybind.primary;
let secondary = keybind.secondary;