Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

キーイベント作成 #2

Open
2 tasks
yumetodo opened this issue Aug 26, 2016 · 2 comments
Open
2 tasks

キーイベント作成 #2

yumetodo opened this issue Aug 26, 2016 · 2 comments
Assignees

Comments

@yumetodo
Copy link
Collaborator

yumetodo commented Aug 26, 2016

背景

イベントクラスがないとフラグが広範囲にばらまかれて可読性を下げるので必要な気がする。

仕様

  • 毎ループ呼ぶためのメンバー関数checkを持つ
  • JavaScript(DOM)やWindowsForm(C#)を参考に、eventのregisterメンバー関数を作る(hover, click,...)

課題

  • registerされた関数はどう管理するか(std::functionはinline最適化を阻害する、std::tupleでもつのは大変そう、lambdaの合成はもっと大変そう)
  • vicさん作の、DX_Key_Joy_Colorの調査

参考

https://github.com/takeokunn/DoNotPushGame/blob/master/Don't_push/Don't_push/source/Dxkeystate.cpp
https://github.com/takeokunn/DoNotPushGame/blob/master/Don't_push/Don't_push/source/Dxkeystate.h

その他

うまくいけば
Nagarei/DxLibEx#45
に取り込む。

@yumetodo
Copy link
Collaborator Author

yumetodo commented Aug 27, 2016

  • 雛形をつくる (@yumetodo )
  • 関数での判定部分を作る
  • 登録部分と削除部分を作る
  • 複数キー同時押しに対応する

@yumetodo
Copy link
Collaborator Author

yumetodo commented Aug 28, 2016

@m0bec @makuragi1 複数キー同時押しに対応してもらえますか?

参考になりそうなもの

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants