List of commits:
Subject Hash Author Date (UTC)
Fix controller menu selection 3a1567ae279289d72058d6aa23d0c4eb147db2a8 mse 2021-11-13 23:00:12
Chinese translations for confec-select and name-your-confec 6c5c9d0fadb17066af82d459d1d46868af0e9faa mse 2021-11-13 20:58:26
Parse newlines in CSL notifications fc21ba1563a1c36ff20711c84b0dc3f3d7588646 mse 2021-11-13 05:12:11
Scriptable special items: GIVESPECIAL <id> <name> 256a2581e75dc3762b098f8cae3259899f8c4a94 mse 2021-11-13 03:24:02
Improved particles, darker nights, work on GIVESPECIAL e8e352e03fdffb8a8e57f94f99028bc1c6c03376 mse 2021-11-12 08:51:36
Fix caption padding bug a49cd2397d2e1b98679828303116db858d146a93 mse 2021-11-08 23:35:07
Disable is_regular_file for Boost support ebee78afad8b29f0332a4cf719c7c4d70e8c9ff8 mse 2021-11-08 22:41:42
Bump version to 0.6.1 9bdeecf9d39b75d12e44cb65bbb97a2e8277fcd4 mse 2021-11-08 21:34:25
Improve caption printing and start work on GIVESPECIAL ec51488e4fd5552ae6d22db1b6eedfef7c2541b7 mse 2021-11-08 20:29:59
Load current screen's images for CSL support 43ef06272048c164fc754a547a57859bdfb909db mse 2021-11-06 03:23:56
Fix Mac builds and bump version to v0.6.0 efcc6a0b4858af2abd027c8379d41ee1fe073620 mse 2021-11-04 23:40:55
Remove structured initializer for older compiler support 772a6b05b40cd5f7412a7736fe574319fe67289a mse 2021-11-04 17:54:41
Make C++ standard version configurable b100287447ddf4aa503ebac88710b0b92e25aa7f mse 2021-11-04 15:56:47
Fix zoom for particles 5c80a4a30c13672f00df8f3d74297908c132f45d mse 2021-11-04 14:54:34
Use 2 different speed curves for smart zoom 56f9cd38408e4cd3ed08b75b00b131a0bc236b56 mse 2021-10-22 01:51:47
Improve smart zoom math 87da264dca8c443c24a6340002a8cd8169a1446b mse 2021-10-17 10:11:14
Add smart zoom cc57dc0952db6c59d06ef7a9b5c5526f7801945f mse 2021-10-16 09:13:49
Housekeeping 76d7571c34241141c6e2a6315de5e5b513db5209 mse 2021-10-07 07:33:20
Fix font kerning support ab4cbabbed82f629d616f8878790e7d2666524eb mse 2021-10-02 21:10:14
Add default soundspec volume 82a658f2e2bd786618228346bc1848c1be894054 mse 2021-09-30 05:23:43
Commit 3a1567ae279289d72058d6aa23d0c4eb147db2a8 - Fix controller menu selection
Author: mse
Author date (UTC): 2021-11-13 23:00
Committer name: mse
Committer date (UTC): 2021-11-13 23:00
Parent(s): 6c5c9d0fadb17066af82d459d1d46868af0e9faa
Signer:
Signing key:
Signing status: N
Tree: ab9f2f2361f175c2acbfee3a0823e554d21f829d
File Lines added Lines deleted
confec.cpp 9 4
File confec.cpp changed (mode: 100644) (index b8e5edb..40b8a2c)
... ... void Render(){
4667 4667 // Left joystick. // Left joystick.
4668 4668 stickX = fgl::leftStickX(); stickX = fgl::leftStickX();
4669 4669 stickY = fgl::leftStickY(); stickY = fgl::leftStickY();
4670 // Directional pad.
4671 int dPadR = fgl::rightPad(), dPadL = fgl::leftPad(),
4672 dPadD = fgl::downPad(), dPadU = fgl::upPad();
4670 4673
4671 4674 // Hide the mouse cursor if the left joystick is moved past the // Hide the mouse cursor if the left joystick is moved past the
4672 4675 // analog dead zone. Otherwise assign stick values to zero. // analog dead zone. Otherwise assign stick values to zero.
 
... ... void Render(){
4676 4679 stickX = 0.0f; stickX = 0.0f;
4677 4680 stickY = 0.0f; stickY = 0.0f;
4678 4681 } }
4682 // Hide the mouse cursor if the controller's D-pad is used.
4683 if( dPadR || dPadL || dPadD || dPadU ) show_cursor = false;
4679 4684
4680 4685 std::string std::string
4681 4686 *k_up = kb ? &kb->get( "up" ) : nullptr, *k_up = kb ? &kb->get( "up" ) : nullptr,
 
... ... void Render(){
4685 4690
4686 4691 // Directional input for movement and menus. // Directional input for movement and menus.
4687 4692 moveX = moveX =
4688 ( fgl::rightKey() || GetButtonState( k_right ) || fgl::rightPad() ) -
4689 ( fgl::leftKey() || GetButtonState( k_left ) || fgl::leftPad() ) +
4693 ( fgl::rightKey() || GetButtonState( k_right ) || dPadR ) -
4694 ( fgl::leftKey() || GetButtonState( k_left ) || dPadL ) +
4690 4695 stickX; stickX;
4691 4696 moveY = moveY =
4692 ( fgl::downKey() || GetButtonState( k_down ) || fgl::downPad() ) -
4693 ( fgl::upKey() || GetButtonState( k_up ) || fgl::upPad() ) +
4697 ( fgl::downKey() || GetButtonState( k_down ) || dPadD ) -
4698 ( fgl::upKey() || GetButtonState( k_up ) || dPadU ) +
4694 4699 stickY; stickY;
4695 4700
4696 4701 static int moveXLast; static int moveXLast;
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/mse/ConfectionerEngine

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/mse/ConfectionerEngine

Clone this repository using git:
git clone git://git.rocketgit.com/user/mse/ConfectionerEngine

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main