Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
il y a 12 ans
Benlitz
c1da4619f7
input: renamed xinput keys to something more human readable (such as A or DPadLeft) and inverted mouse Y axis to match joystick axis (negatives being up)
core: calling InitGame() at the first tick of an entity. InitDraw is still uncalled yet
fixed mrpigeon and orbital accordingly
il y a 12 ans
Benjamin ‘Touky’ Huet
de338ae89a
nacl build fix.
il y a 12 ans
Sam Hocevar
349559acd9
input: fix uninitialised data in the SDL mouse input.
il y a 12 ans
Lolbot
d375c7ba61
fixed 4 files out of 2770:
- removed 0 CR characters
- removed 0 trailing whitespaces
- replaced 5 tabs with spaces
- fixed 1 svn:eol-style properties
il y a 12 ans
Benlitz
8a657ea287
input: Removed previous input system
il y a 12 ans
Sam Hocevar
0529e067f2
input: fix a problem with the SDLK_WORLD_0 macro; arrow keys weren't
handled properly.
il y a 12 ans
Lolbot
c47d0f8c62
fixed 10 files out of 2754:
- removed 386 CR characters
- removed 4 trailing whitespaces
- replaced 189 tabs with spaces
il y a 12 ans
Benlitz
cecd5db3fa
build fix on non-SDL platforms
il y a 12 ans
Benlitz
a7aac24c46
Completely reworked input system. Unified device interface, button, axis and cursor support, controller and binding system, mouse capture. Tutorial 07_input provided. Require to compile lolcore with LOL_INPUT_V2 to be activated (also needed app-side before including core.h)
il y a 12 ans
Sam Hocevar
532f679f8a
gpu: get rid of the global D3D device pointer and move D3D initialisation
code from the Video to the Renderer class.
il y a 12 ans
Sam Hocevar
68c2da5898
build: more Emscripten improvements; keyboard input works properly now.
il y a 13 ans
Sam Hocevar
6be31bba32
input: make keyboard state platform-independent.
il y a 13 ans
Sam Hocevar
1ffa61c572
input: activate SDL input with Emscripten.
il y a 13 ans
Sam Hocevar
551fea7ed7
build: use GLES (not GL) when using emscripten, and disable SdlInput too.
il y a 13 ans
Sam Hocevar
95369e26db
base: a few minor style tweaks.
il y a 13 ans
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
il y a 13 ans
Sam Hocevar
32753fa130
build: fix a few macro logic issues in SDL.h inclusion.
il y a 13 ans
Sam Hocevar
1e973c81bd
build: add SDL detection code in new file lol-sdl.m4. The SDL2 version is
disabled until the engine code itself is ported to SDL2.
il y a 13 ans
Sam Hocevar
39cd7a1fd0
build: revert the weak symbol work; it confuses Visual Studio too much.
il y a 13 ans
Sam Hocevar
d3af7653c0
build: provide weak symbols for lol_sdl_main on Visual Studio.
il y a 13 ans
Sam Hocevar
96256f45ce
build: use our own main() wrapper in addition to SDL's, and only
in that case. Currently only works with GCC.
il y a 13 ans
Sam Hocevar
f44e3e323b
core: you can now while(app.MustTick()) { Tick(); } instead of app.Run().
il y a 13 ans
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
il y a 13 ans
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
il y a 13 ans
Sam Hocevar
b438a94642
input: add the Keyboard abstraction object type.
il y a 13 ans
Sam Hocevar
3bfbb6c408
build: fix shitloads of warnings.
il y a 13 ans
Sam Hocevar
0f14383241
build: split the D3d9 build flags into D3d9 and Xinput for situations where
we want Xinput but not D3D (ie. OpenGL).
il y a 13 ans
Sam Hocevar
eab78ea114
input: switch SDL joystick handling mode to polling, because we won't get
any events if there is no X window.
il y a 13 ans
Sam Hocevar
7a776e72f5
core: fix the X360 build by re-adding macro barriers I removed.
il y a 13 ans
Sam Hocevar
9b5880936c
build: tweak everything to allow building with SDL on the Raspberry Pi.
il y a 13 ans
Sam Hocevar
8d28557645
input: fix brain fart in our SDL joystick input.
il y a 14 ans
Sam Hocevar
70f992bb36
win32: add an Xinput class for Xbox360 controllers, because they're not
properly detected using the generic SDL driver.
il y a 14 ans
Sam Hocevar
c0141debea
input: allow to remap gamepad axes in the generic input layer.
il y a 14 ans
Sam Hocevar
102d007cda
input: blacklist HDAPS as a joystick, it's not really a joystick.
il y a 14 ans
Sam Hocevar
58b3c20b86
input: add core joystick support and bind the SDL input to that.
il y a 14 ans
Sam Hocevar
90bfc79b22
core: tick methods now use seconds, like any sane system.
il y a 14 ans
Sam Hocevar
fe9bab81c1
gpu: fix a great lot of Direct3D problems, spotted using PIX.
il y a 14 ans
Sam Hocevar
48c7070243
gpu: replace exit(0) in D3D error checks with lol::Abort().
il y a 14 ans
Sam Hocevar
88f10fe54b
build: allow to build the Direct3D 9 driver with the mingw compiler.
il y a 14 ans
Sam Hocevar
090834b149
win32: start porting the graphical backend to DirectX 9. Apparently I
cannot used DirectX 10 because my video card only supports DX9, and there
is no compatibility layer. DX11 has feature levels for older hardware so
it would work with a DX9 card, but it's not available for WinXP.
il y a 14 ans
Sam Hocevar
7fd393b7ef
sdl: on Windows, perform the input tick in the main drawing thread.
il y a 14 ans
Sam Hocevar
0a52e68f6f
math: rename matrix.h to vector.h and simplify some stuff, especially in
the matrix code itself.
il y a 14 ans
Sam Hocevar
48bf48a4e4
math: move the Remez algorithm implementation to the core.
il y a 14 ans
Sam Hocevar
b2d73f6310
core: prefix Entity members with m_ to avoid accidental shadowing.
il y a 14 ans
Sam Hocevar
0161879a84
core: try to merge Ticker and Emcee. Still not very good.
il y a 14 ans
Sam Hocevar
5d42f27259
tutorial: port the Mandelbrot dithering shader to Cg.
il y a 14 ans
Sam Hocevar
8ec5fff6df
core: implement Application::ShowPointer() so that applications can choose
whether to use the system mouse pointer or not.
il y a 14 ans
Sam Hocevar
8deb365040
core: write a generic application class.
il y a 14 ans
Sam Hocevar
b111f7e3d8
core: move platform-specific code to specific directories.
il y a 14 ans