0

I'm trying to get OIS work with D. I'm making an OIS wrapper from C++ to C to D. The problem is, I have to pass an OIS::KeyCode enum to C, but I don't know how. I could just copy it but it seems to me much more sane not copying it.

EDIT: OIS has MouseButtonID and KeyCode, both of them are in the OIS namespace, how do I translate that into C for passing it later to D?

4

1 回答 1

0

您是否尝试将枚举转换为 int?

于 2013-08-30T15:32:53.060 回答