Archive 17/01/2023.

[Solved] Lua Bitwise Operators

practicing01

Hello, I noticed that in the angelscript ninja demo, bitwise operators are used if (joystick.hatPosition[0] & HAT_LEFT != 0). How can I use bitwise operators with lua since urho used 5.1 but only 5.2 has the bit32 library? Thanks for any help.

thebluefish

LuaJIT provides several LUA extensions out-of-the-box. This includes Lua BitOp.