Commit Graph

35 Commits

Author SHA1 Message Date
Ray
0b9f463e64 REVIEWED: examples: Replace TABS and Remove trailing spaces 2025-11-19 13:18:10 +01:00
Ray
d5e8ee77b1 Update core_input_gamepad.c 2025-11-18 21:32:20 +01:00
f51204821a Add vibration test button to core_input_gamepad (#5362) 2025-11-18 21:27:50 +01:00
Ray
80b6b7fc2a Update core_input_gamepad.c 2025-11-13 20:37:35 +01:00
Ray
25f4e544d1 REXM: UPDATED: Examples source code header info, aligned with name 2025-09-07 12:01:51 +02:00
Ray
a72b4b177b Updated examples short description 2025-08-26 00:32:24 +02:00
b230720842 example core_input_gamepad.c: fix hardcoded gamepad 0 2025-07-27 14:35:38 +00:00
945f181f1d [examples] Update examples to be consistent (#4699)
* Update examples inconsistencies

* Happy new years, examples!

* Missed one inconsistency

* Update final few examples inconsistencies

---------

Co-authored-by: Anstro Pleuton <anstropleuton@github.com>
2025-01-18 19:41:56 +01:00
27e530eb18 update examples with difficulty stars (#4694)
* update examples with difficulty stars

* manual fix script issues

* manual fix script issues
2025-01-17 10:42:30 +01:00
a2f6ae6796 Fix warnings in examples (#4492)
Move shapes/shapes_rectangle_advanced to the correct folder in MSVC project
Add core_input_virtual_controls.vcxproj back into sln file
2024-11-15 08:25:09 +01:00
157ee79a8e Add drawing for generic gamepad on core_input_gamepad example (#4424) 2024-10-23 20:31:57 +02:00
fe6da67066 [examples] Add deadzone handling to core_input_gamepad example (#4422)
* Add deadzone handling to core_input_gamepad example

* Rename variables
2024-10-23 16:31:27 +02:00
75a4c5bf20 Update core_input_gamepad example (#4416) 2024-10-23 00:28:20 +02:00
3948656d84 The example always showed a xbox controller, never a ps3 controller (#4040) 2024-06-07 10:21:02 +02:00
Ray
3f1e59a7cf Update copyright to 2024 2024-01-02 20:58:12 +01:00
18e9784c6d Remove PLATFORM_RPI (#3232)
* Remove PLATFORM_RPI

* remove build artifacts

---------

Co-authored-by: MichaelFiber <michael@cubeofb.org>
Co-authored-by: Ray <raysan5@gmail.com>
2023-09-07 17:42:28 +02:00
7392c4b0c5 Better examples/core_input_gamepad (#3110)
* examples/core_input_gamepad: Add visuals for LT,RT

* examples/core_input_gamepad: arrows left/right to choose gamepad

* Style change
2023-06-14 20:46:10 +02:00
212f331583 Update core_input_gamepad.c (#2903) 2023-02-01 15:13:25 +01:00
Ray
b59fab7ee6 Update year to 2023 2023-01-01 16:00:56 +01:00
Ray
4a9391ae83 REVIEWED: examples descriptions 2022-07-20 01:28:37 +02:00
Ray
c1b01c0d5d Added new comment to examples 2022-06-21 19:53:18 +02:00
4954778f68 Improve joystick visualisation in gamepad example again (#2391)
As prior commit, but complete fix for XBox controller and trigger
buttons too.

> The joystick range is a float from -1 through +1. Casting this to int
> yields only three possible values: -1, 0, and 1. This gives a
> misleading joystick placement in the demo.
>
> By casting to int after the multiplication to get pixel values, the
> demo reveals the analog feel of the joystick.
2022-03-14 17:16:09 +01:00
ec7250ca54 Improve joystick visualisation in gamepad example (#2390)
The joystick range is a float from -1 through +1. Casting this to int
yields only three possible values: -1, 0, and 1. This gives a
misleading joystick placement in the demo.

By casting to int after the multiplication, the demo reveals the
analog feel of the joystick.
2022-03-14 16:00:59 +01:00
1883343944 Update core_input_gamepad.c 2021-10-22 15:04:31 +02:00
736d5920c7 Update core_input_gamepad.c 2021-04-01 20:22:52 +02:00
e48b9a6da1 [Examples] Warning fixes (pt 1) (#1668)
* Fix some warnings in examples.

* cleanups from review

Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-23 07:51:52 +01:00
Ray
8527dbc6e2 WARNING: REMOVED: GamepadNumber enum 2021-03-19 18:16:05 +01:00
d96b422809 Fixed example doesn't show gamepad for Xbox 360 controllers with different drivers (#1597) 2021-02-18 21:52:39 +01:00
c32ae480af RENAMED: FormatText() -> TextFormat()
This function was renamed for consistency in raylib 3.0, just unified all examples to use TextFormat() instead of FormatText()
2020-08-16 11:28:15 +02:00
0bd64b7975 Gamepad axis bug fixes and improvement (#1228)
* Fix gamepad axis count

* Fix Xbox axis drawing

* Ignore low axis values

* Revert "Fix gamepad axis count"

This reverts commit f08ae4bf

* Fix GamepadAxis API

* Fix conflict with master

* Revert Gamepad MAX definitions

* Revert MAX_GAMEPAD_AXIS update
2020-05-09 12:39:41 +02:00
Ray
b525039e0a Review ALL examples 2019-05-20 16:36:42 +02:00
f36ba6a2f4 Damn, made a mistake 2019-04-28 16:32:05 +01:00
948a442704 Update gamepad example to use new enums 2019-04-28 16:20:14 +01:00
Ray
c47b04a2c6 Working on web examples 2017-04-05 00:29:39 +02:00
Ray
dd4dd0e87d Reorganize examples folder 2017-04-04 01:54:49 +02:00