Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Riton_Lafouine

Pages: 1 [2]
16
Graphics / Retrieving + key with (shit =)
« on: May 03, 2020, 04:56:21 pm »
Hello, i'm new to sfml and rookie into programming.

I already set up a keyboard event chain wich is working and i'm happy with it.

But i need for some purpose to use the + (shit =), it shows Ascii code 43, same as + key on numerical keypad.

+ (shift =) is not triggering my event, it seems sf::keyboard::Add is only triggered by keypad.

Is there a way to use this key wit sf::keyboard ?

Bonus question, is it possible to lock Shift key in the program ? in order that keyboard numbers (not keypad) are always active in front.

thanks by advance,

RLF


17
Graphics / accès à la touche + (shift =)
« on: May 03, 2020, 04:35:03 pm »
Bonjour,

tout d'abord, je suis débutant sur SFML (et en programmation en général) mais j'ai bien réussi à mettre en place une chaine d’événement clavier fonctionnelle dont je suis satisfait.

Mon problème est que je cherche à accéder à la touche + (shift =) le code ascii est identique à celui de la touche + du pavé numérique mais apparement SFML n'utilise pas ce code ascii pour accéder aux touches.

En effet mon programme ne répond pas à + (shift =) alors qu'il répond à + clavier numérique.

Comment puis-je accéder à cette touche, elle n'apparait pas dans sf::Keyboard Class Reference

question subsidiaire, est il possible de forcer le shift pour qu'il soit activé tout le temps dans le programme ?

Merci d'avance

RLF

Pages: 1 [2]