Gamepad support
QuaiGoner opened this issue · comments
That feature already have some ground work, engine does register inputs, axis included, but when we try to bind controls it maps to a keyboard and does not maps axis.
Would be great to have propeg diput/xinput support in S.T.A.L.K.E.R. series before S.T.A.L.K.E.R. 2 comes out.
It already maps axes in the latest dev builds :)
And you can even play with it. (but keyboard and mouse is still needed for inventory, dialogs, PDA)
It already maps axes in the latest dev builds :) And you can even play with it. (but keyboard and mouse is still needed for inventory, dialogs, PDA)
Только что скачал с Appveyor крайний билд Gold - крашится при запуске новой игры и в меню геймпад не мапится (хотя мышка двигается правым стиком) - использую DS4 + DS4Windows, может быть я не тот билд взял?
OpenXRay_error_report_220125-131518.zip
Прикладываю лог после нажатия новой игры
- Попробуй убрать папку versions из папки с игрой.
Произошёл прикол. Игра, похоже, начала грузить файлы ТЧ из этой папки... - Биндить геймпад можно только из отдельного окошка, которое добавляется геймдатой. Она есть в December 2020 Preview, а нерелизные билды идут без геймдаты. Ну, и, я более новую геймдату не выложил даже нигде ещё. (в декабрьском релизе старая, хотя она тоже подойдёт)
Вот новая геймдата:
gamedata.zip
После распаковки, в меню управления появится кнопка переключения на настройки геймпада)
Это я параллельно играюсь с version switcher, был интересно как оно работает)
Папку переименовал и добавил вашу геймдату.
Пару моментов:
- Имплементация левого стика - с шагом - бегом - быстрым бегом - просто гениально + сэкономлено столько кнопок
- Правый стик имеет дикую чувствительность - чувствительность мыши не влияет, возможно привязка к фпс ( у меня более 150)
- Для более-менее играбельного сотояния имхо было бы досточно навигации через D-pad в меню и инвентаре + кнопка для вызова контекстного меню в инвентаре на которое переключился бы фокус д-пада + та же история для диалогов - D-PAD + A&B
В целом - моё почтение, очень круто получилось, спасибо за помощь
А получится ли aim-assist из уже какого-то готового проекта опенсурсного выдернуть, типа xash3d?
Или билда одного. Но это скорее будет нарушением лицензии
Code references on wheel (pie) menu: ocornut/imgui#434
Useful articles: http://blog.hypersect.com/interpreting-analog-sticks http://blog.hypersect.com/analog-to-digital-input-translation
Useful talk on designing input/controls in game:
https://www.youtube.com/watch?v=iHieM3u-lJ0
Trying to use third party software for gamepad support not working. Maybe it's conflicting with current implementation. Could you pinpoint me to a config or whatever where i can find and make the engine ignore gamepad for now?
@FaV0RiT77, I just added -no_gamepad
command line key for this. Nightly build with this key will be available within 1-2 hours.
need fix linux biuld after 6e3a069
xray-16_build_error.txt
need fix linux biuld after 6e3a069 xray-16_build_error.txt
Fixed. Unfortunately, glibc or GCC itself is not conformant to C++ standard :(