Gabriel Ozouf
106916e7bf
[curve_view] Add double evaluation
...
Add the possibility to use a double-typed evaluator when tracing a
curve, useful when errors caused by float approximation mess with the
drawing.
Change-Id: I3ab410deec4823149239b0a26b1885fd2a493226
2020-10-23 08:56:56 +02:00
Émilie Feral
c91c2a6e3f
[app/shared] CurveView: Avoid dashSize overflow in
...
drawHorizontalOrVerticalSegment
2020-10-12 09:48:55 +02:00
Émilie Feral
8e025b0823
[apps/shared] CurveView: avoid overflowing KDCoordinate
...
This fixes the following bug: add the sequence, u(n)=2^n. On the graph,
go to "sum of terms" and try to sum terms from 0 to 18 by moving the
cursor. It hangs.
2020-10-12 09:48:55 +02:00
Émilie Feral
17fd1aea29
[ion] Haptics implementation are on all simulators but
...
Ion::Haptics::isEnabled is per platform.
2020-09-30 17:30:34 +02:00
Émilie Feral
0c0510599d
[ion] Simulator: haptics feedback are only implemented on Android and
...
depends on the System settings
2020-09-30 17:30:34 +02:00
Émilie Feral
9786db308a
[ion] Haptics events don't depend on SCREEN_ONLY
2020-09-30 17:30:34 +02:00
Émilie Feral
979c227d54
[ion] web: improve key highlight positions
2020-09-30 17:30:34 +02:00
Émilie Feral
595532e0a5
[ion] Remove useless variables
2020-09-30 17:30:34 +02:00
Émilie Feral
42cedf5b10
[ion] Windows: improve resgen.py script
2020-09-30 17:30:34 +02:00
Émilie Feral
f4b9635fee
[ion] Change variable name
2020-09-30 17:30:34 +02:00
Émilie Feral
560c4b3821
[ion] Linux: improve incbin.py script
2020-09-30 17:30:34 +02:00
Émilie Feral
5da82d8423
[ion] Add comment
2020-09-30 17:30:34 +02:00
Émilie Feral
33425e04c0
[ion] Coding style
2020-09-30 17:30:34 +02:00
Émilie Feral
7535abc298
[ion] Change name of variable in Makefile
2020-09-30 17:30:34 +02:00
Émilie Feral
308b321ead
[ion] Clean windows flag
2020-09-30 17:30:34 +02:00
Émilie Feral
8976ebfc41
[ion] Makefile linux: simplify build system by generating a header
2020-09-30 17:30:34 +02:00
Émilie Feral
4620aa8aa8
[ion] Remove useless comment
2020-09-30 17:30:34 +02:00
Émilie Feral
c96efa76b9
[ion] Windows Makefile: build .rc from the list of assets
2020-09-30 17:30:34 +02:00
Émilie Feral
40392fff9c
[ion] Simulator: assets declaration is common to all targets
2020-09-30 17:30:34 +02:00
Émilie Feral
815a06adad
[ion] Avoid unhighlighting key when the mouse is still on it.
...
Distinguish with smartphones behaviour.
2020-09-30 17:30:34 +02:00
Émilie Feral
22b585057d
[ion] Simulator: key layouts assets are PNG instead of JPG V (fix windows)
2020-09-30 17:30:34 +02:00
Émilie Feral
165b129385
[ion] Simulator: key layouts assets are PNG instead of JPG IV (fix linux)
2020-09-30 17:30:34 +02:00
Émilie Feral
1946c68ef8
[ion] Simulator: key layouts assets are PNG instead of JPG III (fix ios)
2020-09-30 17:30:34 +02:00
Émilie Feral
d2632bff4f
[ion] Simulator: key layouts assets are PNG instead of JPG II (fix
...
android)
2020-09-30 17:30:34 +02:00
Émilie Feral
d4b7b6baf0
[ion] Simulator: key layouts assets are PNG instead of JPG I (fix macos)
2020-09-30 17:30:34 +02:00
Émilie Feral
11236c67cb
[ion] Improve key positions
2020-09-30 17:30:34 +02:00
Émilie Feral
0b114abb95
[ion] Simulator windows: fix pixel format typo
2020-09-30 17:30:34 +02:00
Émilie Feral
8000ff733e
[ion] Simulator: improve key center positions
2020-09-30 17:30:34 +02:00
Émilie Feral
8b5caeb394
[ion] IonSimulatorLoadImage returns a Texture (otherwise the pixels data
...
which needs to be deleted when freeing the surface is hard to retrieve)
2020-09-30 17:30:34 +02:00
Émilie Feral
02b648e36d
[ion] IonSimulatorLoadImage returns a surface instead of a texture: this
...
way we can set a transparent color key before turning it into a texture.
2020-09-30 17:30:34 +02:00
Émilie Feral
674703f4dc
[ion] Missing include
2020-09-30 17:30:34 +02:00
Émilie Feral
64bcbd708a
[ion] Linux: fix images: get the asset addresses instead of consecutive
...
table addresses
2020-09-30 17:30:34 +02:00
Émilie Feral
2236dcdbed
[ion] Fix: unhighlight the key on mouse up event (when you clicked on the key
...
on a smartphone, you want the key to be deselected)
2020-09-30 17:30:34 +02:00
Émilie Feral
af544a95d1
[ion] Windows: IonSimulatorLoadImage can now load any resource. Enable
...
to use key layouts jpg files in C/C++ code.
2020-09-30 17:30:34 +02:00
Émilie Feral
22250b4234
[ion] linux: enable to use key layouts jpg files in C/C++ code
2020-09-30 17:30:34 +02:00
Émilie Feral
a27122802d
[ion] Macos Makefile: add depencies on keys layouts jpg images
2020-09-30 17:30:34 +02:00
Émilie Feral
ad1ef783ce
[ion][escher] Revert previous commit: move inliner back to escher
2020-09-30 17:30:34 +02:00
Émilie Feral
4ae39f56fd
[ion] Simulator: Layout uses jpg images instead of image built by the
...
inliner
2020-09-30 17:30:34 +02:00
Émilie Feral
652d2e6bac
TODOs
2020-09-30 17:30:34 +02:00
Émilie Feral
50031c4836
[ion] Unhighlight the key on mouse up event (when you clicked on the key
...
on a smartphone, you want the key to be deselected)
2020-09-30 17:30:34 +02:00
Émilie Feral
ef363c57ac
[ion] Reset the highlighted key once it has been drawn
2020-09-30 17:30:34 +02:00
Émilie Feral
ded2174578
[ion] simulator/shared: fix macro EPSILON_SDL_SCREEN_ONLY
2020-09-30 17:30:34 +02:00
Émilie Feral
c5add52e61
[ion] simulator: move key_layouts to ion/src/simulator/assets
2020-09-30 17:30:34 +02:00
Émilie Feral
1ad55139b4
[ion] simulator/shared/key_layouts: udpate png files
2020-09-30 17:30:34 +02:00
Émilie Feral
db1874fdac
[ion] simulator/shared/layout: update the center of keys to centered the
...
highlight keys
2020-09-30 17:30:34 +02:00
Émilie Feral
23a542e639
[ion/simulator/shared/layout] Round instead of truncate when converting
...
relative to absolute coordinates
2020-09-30 17:30:34 +02:00
Émilie Feral
a8c318f90f
[ion] simulator: move background render methods to layout
2020-09-30 17:30:34 +02:00
Émilie Feral
a3ef7c9234
[ion] simulator: fix magic number in display
2020-09-30 17:30:34 +02:00
Émilie Feral
649fb0bebe
[ion] Simulator: highlight keys when the mouse is over
2020-09-30 17:30:34 +02:00
Émilie Feral
94851da7f9
[ion] Add drafts of images reprensenting key shapes
2020-09-30 17:30:34 +02:00