Cojín en la mejilla para amortiguar el sonido del Tokarev ruso (Ooh)
O te pondré un cojín bajo las rodillas, tienes que estar cómodo cuando me la chupes (Gang)
This commit is contained in:
parent
c1a49f7c8f
commit
d53e7eb661
18
APL2.1/TP9/Volume/Souris.java
Normal file
18
APL2.1/TP9/Volume/Souris.java
Normal file
@ -0,0 +1,18 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class Souris implements MouseWheelListener {
|
||||
Paintvolume draw;
|
||||
public Souris(Paintvolume draw) {
|
||||
this.draw = draw;
|
||||
}
|
||||
public void mouseWheelMoved(MouseWheelEvent e) {
|
||||
if (e.getWheelRotation() > 0) {
|
||||
draw.downVolume();
|
||||
} else {
|
||||
draw.upVolume();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user